From: Satyam Sharma Date: Tue, 2 Oct 2007 20:28:14 +0000 (-0700) Subject: [CPUFREQ] mark hotplug notifier callback as __cpuinit X-Git-Tag: v2.6.24-rc1~1396^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dd184a01b8ece6bac2f7a63de99a4a4d29552746;p=linux-2.6-omap-h63xx.git [CPUFREQ] mark hotplug notifier callback as __cpuinit The notifier_block is already __cpuinitdata, thereby allowing us to safely mark the callback function as __cpuinit also, thereby saving space when HOTPLUG_CPU=n. Signed-off-by: Satyam Sharma Signed-off-by: Andrew Morton Signed-off-by: Dave Jones --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 65ac5851122..e027052a660 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1730,7 +1730,7 @@ int cpufreq_update_policy(unsigned int cpu) } EXPORT_SYMBOL(cpufreq_update_policy); -static int cpufreq_cpu_callback(struct notifier_block *nfb, +static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { unsigned int cpu = (unsigned long)hcpu;