]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: remove unnecessary cpufreq_cpu_{get|put}() calls
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 31 May 2013 06:15:08 +0000 (06:15 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jun 2013 12:26:27 +0000 (14:26 +0200)
commita262e94cdcb961762e5d91e7fcb857bba7d420a0
treec72b98652841617dae7a103ca2478227efa6d90e
parent27209d913e5127a1e7ef6655319a406833462d0c
cpufreq: remove unnecessary cpufreq_cpu_{get|put}() calls

struct cpufreq_policy is already passed as argument to some routines
like: __cpufreq_driver_getavg() and so we don't really need to do
cpufreq_cpu_get() before and cpufreq_cpu_put() in them to get a
policy structure.

Remove them.

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