cpufreq: return early from __cpufreq_driver_getavg()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 24 Oct 2012 21:39:48 +0000 (23:39 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:07 +0000 (00:33 +0100)
commit0676f7f2e7d2adec11f40320ca43a8897b8ef906
treeac9237b4557865cf921e84d94f7c063161d103b0
parent8636fd280e970696be62c8495a5aacb5f3b6237d
cpufreq: return early from __cpufreq_driver_getavg()

There is no need to do cpufreq_get_cpu() and cpufreq_put_cpu() for drivers that
don't support getavg() routine.

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