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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:23 +0000 (11:47 +0900)
commit2247da9c0bb0427f1d81a71a8339edf5c1e434b2
tree5d2695c01d77a7fe83437f1f5582e71700deeb97
parent76cc076cb07233d984573623af2f0a62af35c869
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.

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