cpufreq stats module unload fault.
PATCH 1/1 cpufreq stats module unload fault.
CPU hotplug patch for cpufreq_stats module marked cpufreq_stat_cpu_callback as __cpuinit.
That will break module unload if CONFIG_CPU_HOTPLUG is not set, because this function is also called at module_exit.
Signed off by: Zou Nan hai <[email protected]>
drivers/cpufreq/cpufreq_stats.c +1 -1
@@ -303,7 +303,7 @@ cpufreq_stat_notifier_trans (struct notireturn 0 ; } -static int __cpuinit cpufreq_stat_cpu_callback (struct notifier_block *nfb, +static int cpufreq_stat_cpu_callback (struct notifier_block *nfb,unsigned long action,void *hcpu) {unsigned int cpu = (unsigned long )hcpu;