Skip to contentSkip to conversation

cpufreq stats module unload fault.

PATCH New Zou Nan hai 1 participant 1 message Dec 9, 2005 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

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
diff -Nraup a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
@@ -303,7 +303,7 @@ cpufreq_stat_notifier_trans (struct noti
 	return 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;