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
tree: 4d20e99475d4097b16b3ccbbcb45ae084b3f4b7a
  1. build/
  2. debug/
  3. lib/
  4. man/
  5. po/
  6. utils/
  7. .gitignore
  8. AUTHORS
  9. COPYING
  10. Makefile
  11. README