Added support for cpufreq statistics.
This adds support for cpufreq statistics to cpufrequtils:
- struct cpufreq_stats {
unsigned long frequency;
unsigned long long time_in_state;
struct cpufreq_stats *next;
struct cpufreq_stats *first;
};
- cpufreq_get_stats(unsigned int cpu, unsigned long long *total_time)
Returns a pointer to cpufreq stats data for given CPU and a sum
of time spent in all frequencies in second parameter.
- cpufreq_put_stats(struct cpufreq_stats *any)
Frees data returned by cpufreq_get_stats().
- cpufreq_get_transitions(unsigned int cpu)
Returns total number of frequency transitions.
cpufreq-info also shows this data (if available).
Signed-off-by: Goran Koruga <korugag@siol.net>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
7 files changed