[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/2] Fix cpuMhz of virNodeGetInfo() don't returns maximum cpu frequency



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 <usui mxm nes nec co jp>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]