Request for CPU frequency scaling information
Submitted by Robert Roth
Link to original bug (#668420)
Description
Currently libgtop supports getting the CPU usage for each CPU, but we can not get any information about the frequency it's measured at. E.g. many CPUs support frequency scaling (most laptop CPUs do), and 100% CPU usage at 800 Mhz is 50% CPU usage at 1600 Mhz. To properly identify the correct CPU usage, the cpu information should also return per-CPU frequency in the glibtop_cpu struct. E.g. on linux this would mean adding the cpuinfo_max_freq, cpuinfo_min_freq and cpuinfo_cur_freq fields, with the corresponding values from /sys/devices/system/cpu/cpuX/cpufreq/ (where X is the number of the CPU)