'How to get CPU clock frequency on an ARM/Linux machine

The answer seems pretty obvious I guess but none of the possible answers given in https://superuser.com/questions/406141/how-to-get-an-arm-cpu-clock-speed-in-linux applies to me.

cat /proc/cpuinfo 

only gives me

processor   : 0
model name  : ARMv7 Processor rev 2 (v7l)
Features    : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part    : 0xc08
CPU revision    : 2

Hardware    : Generic AM33XX (Flattened Device Tree)
Revision    : 0000
Serial      : 0000000000000000

and there is no file called cpuinfo_*_freq below /sys/devices/system/cpu. I don't have hwinfo or dmidecode or any executable called cpu* on this machine :)

Do you know how to retrieve or 'measure' a CPU's actual frequency programatically?



Solution 1:[1]

you could try dmidecode|grep MHz

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 qiaochu li