cpufreq: stats: get rid of per-cpu cpufreq_stats_table
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 13 Jan 2015 06:04:00 +0000 (11:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 22:06:44 +0000 (23:06 +0100)
commita9aaf2915ee265735c28b764551d084e61a694e0
tree68706030add04688b679a9ab0fa7c46afd945ec5
parent2aba0c1bae564a59fc38c407abf7985f9e347cc4
cpufreq: stats: get rid of per-cpu cpufreq_stats_table

All CPUs sharing a cpufreq policy share stats too. For this reason,
add a stats pointer to struct cpufreq_policy and drop per-CPU variable
cpufreq_stats_table used for accessing cpufreq stats so as to reduce
code complexity.

Reviewed-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c
include/linux/cpufreq.h