summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-06 15:39:05 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-23 22:06:44 (GMT)
commit2aba0c1bae564a59fc38c407abf7985f9e347cc4 (patch)
tree187084e0c331a68ca46754f57c868764032401f7 /.mailmap
parentf93dbbbd108936b18b3230af36d9a36866ce69a7 (diff)
downloadlinux-2aba0c1bae564a59fc38c407abf7985f9e347cc4.tar.xz
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 '.mailmap')
0 files changed, 0 insertions, 0 deletions