cpufreq: use light-weight cpufreq_cpu_get_raw() in __cpufreq_add_dev()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 2 Jan 2015 07:04:33 +0000 (12:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:49:34 +0000 (22:49 +0100)
commitd7a9771c1a37af8d0cd0cf97723aeea88b9de8bb
treee8131d4c3cc33fd7c24be19bfdfc86f278795bce
parent7f0c020ab6ecb513394de9b02df33a5cfc62084f
cpufreq: use light-weight cpufreq_cpu_get_raw() in __cpufreq_add_dev()

We just need to check if a 'policy' is already present for the cpu we are
adding. We don't need to take all the locks and do kobject usage updates. Use
the light-weight cpufreq_cpu_get_raw() routine instead.

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