How to get CPU current frequency in Linux?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get CPU current frequency in Linux?

1,097件の閲覧回数
paullegart
Contributor II

I've got i.MX8 ULP processor and built Yokto Linux image for it. I need to know exact current frequency of each Cortex-A35 core so I tried to use command from chapter 6.2 of IMX_LINUX_USERS_GUIDE but nothing happens. There is no any directory like that:

スポイラ
# cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq
cat: '/sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq': No such file or directory

It seems I didn't turn something on in the Linux core config.

Any suggestions?

0 件の賞賛
返信
1 返信

1,071件の閲覧回数
clay_miller
NXP Employee
NXP Employee

Hi,

I would suggest looking into the AN13814.pdf app note. The i.MX8ULP has a different approach to power management with the uPower module, and it seems it doesn't support cpufreq. The BSP doesn't have the cpufreq driver enabled in the Device tree for the i.MX8ulp.

https://www.nxp.com/docs/en/application-note/AN13914.pdf 

Alternatively, you can view the cpu frequency with the mhz cmd. However, it won't show the individual core frequencies.

Regards,

Clay

0 件の賞賛
返信