diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2006-06-27 05:54:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:41 -0400 |
commit | 74b85f3790aa2550c617fe14439482e13e615fa0 (patch) | |
tree | 125e9c503d483c304e111ca825358bd81e0610cd /mm | |
parent | 65edc68c345cbe21d0b0375c3452a3ed5e322868 (diff) |
[PATCH] cpu hotplug: make cpu_notifier related notifier blocks __cpuinit only
Make notifier_blocks associated with cpu_notifier as __cpuinitdata.
__cpuinitdata makes sure that the data is init time only unless
CONFIG_HOTPLUG_CPU is defined.
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 2 | ||||
-rw-r--r-- | mm/page_alloc.c | 2 | ||||
-rw-r--r-- | mm/slab.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 8ccf6f1b1473..8ac6bfb40073 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -523,7 +523,7 @@ ratelimit_handler(struct notifier_block *self, unsigned long u, void *v) | |||
523 | return 0; | 523 | return 0; |
524 | } | 524 | } |
525 | 525 | ||
526 | static struct notifier_block ratelimit_nb = { | 526 | static struct notifier_block __cpuinitdata ratelimit_nb = { |
527 | .notifier_call = ratelimit_handler, | 527 | .notifier_call = ratelimit_handler, |
528 | .next = NULL, | 528 | .next = NULL, |
529 | }; | 529 | }; |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e9fb2d4064c8..dafd12ec7a0c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2031,7 +2031,7 @@ static int __cpuinit pageset_cpuup_callback(struct notifier_block *nfb, | |||
2031 | return ret; | 2031 | return ret; |
2032 | } | 2032 | } |
2033 | 2033 | ||
2034 | static struct notifier_block pageset_notifier = | 2034 | static struct notifier_block __cpuinitdata pageset_notifier = |
2035 | { &pageset_cpuup_callback, NULL, 0 }; | 2035 | { &pageset_cpuup_callback, NULL, 0 }; |
2036 | 2036 | ||
2037 | void __init setup_per_cpu_pageset(void) | 2037 | void __init setup_per_cpu_pageset(void) |
@@ -1255,7 +1255,9 @@ bad: | |||
1255 | return NOTIFY_BAD; | 1255 | return NOTIFY_BAD; |
1256 | } | 1256 | } |
1257 | 1257 | ||
1258 | static struct notifier_block cpucache_notifier = { &cpuup_callback, NULL, 0 }; | 1258 | static struct notifier_block __cpuinitdata cpucache_notifier = { |
1259 | &cpuup_callback, NULL, 0 | ||
1260 | }; | ||
1259 | 1261 | ||
1260 | /* | 1262 | /* |
1261 | * swap the static kmem_list3 with kmalloced memory | 1263 | * swap the static kmem_list3 with kmalloced memory |