summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-06 16:39:05 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-23 23:06:44 +0100
commit2aba0c1bae564a59fc38c407abf7985f9e347cc4 (patch)
tree187084e0c331a68ca46754f57c868764032401f7 /COPYING
parentcpufreq: stats: don't check for freq table while freeing stats (diff)
downloadlinux-2aba0c1bae564a59fc38c407abf7985f9e347cc4.tar.xz
linux-2aba0c1bae564a59fc38c407abf7985f9e347cc4.zip
cpufreq: stats: pass 'stat' to cpufreq_stats_update()
It is better to pass a struct cpufreq_stats pointer to cpufreq_stats_update() instead of a CPU number, because that's all it needs. Even if we pass a cpu number to cpufreq_stats_update(), it reads the per-cpu variable to get 'stats' out of it. So we are doing these operations unnecessarily: - First getting the cpu number to pass to cpufreq_stats_update(), stat->cpu. - And then getting stats from the cpu, per_cpu(cpufreq_stats_table, cpu). 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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions