diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_stats.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index c2ecc599dc5f..6742b1adf2c8 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c | |||
@@ -351,8 +351,8 @@ __init cpufreq_stats_init(void) | |||
351 | 351 | ||
352 | register_hotcpu_notifier(&cpufreq_stat_cpu_notifier); | 352 | register_hotcpu_notifier(&cpufreq_stat_cpu_notifier); |
353 | for_each_online_cpu(cpu) { | 353 | for_each_online_cpu(cpu) { |
354 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, CPU_ONLINE, | 354 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, |
355 | (void *)(long)cpu); | 355 | CPU_ONLINE, (void *)(long)cpu); |
356 | } | 356 | } |
357 | return 0; | 357 | return 0; |
358 | } | 358 | } |
@@ -368,14 +368,15 @@ __exit cpufreq_stats_exit(void) | |||
368 | unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier); | 368 | unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier); |
369 | lock_cpu_hotplug(); | 369 | lock_cpu_hotplug(); |
370 | for_each_online_cpu(cpu) { | 370 | for_each_online_cpu(cpu) { |
371 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, CPU_DEAD, | 371 | cpufreq_stat_cpu_callback(&cpufreq_stat_cpu_notifier, |
372 | (void *)(long)cpu); | 372 | CPU_DEAD, (void *)(long)cpu); |
373 | } | 373 | } |
374 | unlock_cpu_hotplug(); | 374 | unlock_cpu_hotplug(); |
375 | } | 375 | } |
376 | 376 | ||
377 | MODULE_AUTHOR ("Zou Nan hai <nanhai.zou@intel.com>"); | 377 | MODULE_AUTHOR ("Zou Nan hai <nanhai.zou@intel.com>"); |
378 | MODULE_DESCRIPTION ("'cpufreq_stats' - A driver to export cpufreq stats through sysfs filesystem"); | 378 | MODULE_DESCRIPTION ("'cpufreq_stats' - A driver to export cpufreq stats" |
379 | "through sysfs filesystem"); | ||
379 | MODULE_LICENSE ("GPL"); | 380 | MODULE_LICENSE ("GPL"); |
380 | 381 | ||
381 | module_init(cpufreq_stats_init); | 382 | module_init(cpufreq_stats_init); |