]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: stats: Remove redundant cpufreq_cpu_get() call
authorSaravana Kannan <skannan@codeaurora.org>
Fri, 28 Feb 2014 01:58:34 +0000 (17:58 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Mar 2014 23:55:50 +0000 (00:55 +0100)
commitb24a5b6512a6fb89f3b99b9b0f829b4448e62db0
tree6b576816e5f643675cc5c9778b633d96395f46e6
parentd98d099b9fbb7bbb20a74efe5327322831c9c9a3
cpufreq: stats: Remove redundant cpufreq_cpu_get() call

__cpufreq_stats_create_table always gets pass the valid and real policy
struct. So, there's no need to call cpufreq_cpu_get() to get the policy
again.

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c