cpuMhz of virNodeGetInfo() should return maximum cpu frequency.
(See.
http://fossplanet.com/f13/%5Blibvirt%5D-%5Brfd%5D-add-modify-some-api-functions-about-host-information-95995/#post323949)
virNodeGetInfo() gets it from "cpu MHz" of /proc/cpuinfo,
but this value is scaled by cpu power saving feature.
This patch gets from
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq, if exist.
And if this file doesn't exist, it gets from /proc/cpuinfo.
--
Minoru Usui <[email protected]>
--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list