summaryrefslogtreecommitdiffstats
path: root/crypto/ctr.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-01-06 21:09:05 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-01-23 23:06:44 +0100
commit2aba0c1bae564a59fc38c407abf7985f9e347cc4 (patch)
tree187084e0c331a68ca46754f57c868764032401f7 /crypto/ctr.c
parentf93dbbbd108936b18b3230af36d9a36866ce69a7 (diff)
downloadtalos-obmc-linux-2aba0c1bae564a59fc38c407abf7985f9e347cc4.tar.gz
talos-obmc-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 'crypto/ctr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud