diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 25eee539420..c2ecc599dc5 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -350,12 +350,10 @@ __init cpufreq_stats_init(void) | |||
350 | } | 350 | } |
351 | 351 | ||
352 | register_hotcpu_notifier(&cpufreq_stat_cpu_notifier); | 352 | register_hotcpu_notifier(&cpufreq_stat_cpu_notifier); |
353 | lock_cpu_hotplug(); | ||
354 | for_each_online_cpu(cpu) { | 353 | for_each_online_cpu(cpu) { |
355 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, CPU_ONLINE, | 354 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, CPU_ONLINE, |
356 | (void *)(long)cpu); | 355 | (void *)(long)cpu); |
357 | } | 356 | } |
358 | unlock_cpu_hotplug(); | ||
359 | return 0; | 357 | return 0; |
360 | } | 358 | } |
361 | static void | 359 | static void |