I need to get a CPU nominal frequency under Linux within C++ code. As far as I know, the /proc/cpuinfo
contains a current frequency.
Is /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
always reliable as nominal frequency in kHz?
Or is there a better way to get this information from C++?