mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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. [[email protected]: section fix] Signed-off-by: Chandra Seetharaman <[email protected]> Cc: Ashok Raj <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
74b85f3790
commit
26c2143b63
2 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue