From: Viresh Kumar Date: Fri, 2 Jan 2015 07:04:33 +0000 (+0530) Subject: cpufreq: use light-weight cpufreq_cpu_get_raw() in __cpufreq_add_dev() X-Git-Tag: fixes-v4.0-rc1~160^2~1^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7a9771c1a37af8d0cd0cf97723aeea88b9de8bb;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed