[PATCH] cpu hotplug: make cpu_notifier related notifier calls __cpuinit only
Make notifier_calls associated with cpu_notifier as __cpuinit. __cpuinit makes sure that the function is init time only unless CONFIG_HOTPLUG_CPU is defined. [akpm@osdl.org: section fix] Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Cc: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
74b85f3790
commit
26c2143b63
@@ -516,7 +516,7 @@ static void set_ratelimit(void)
|
||||
ratelimit_pages = (4096 * 1024) / PAGE_CACHE_SIZE;
|
||||
}
|
||||
|
||||
static int
|
||||
static int __cpuinit
|
||||
ratelimit_handler(struct notifier_block *self, unsigned long u, void *v)
|
||||
{
|
||||
set_ratelimit();
|
||||
|
Reference in New Issue
Block a user