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 /arch/powerpc | |
| 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 'arch/powerpc')
| -rw-r--r-- | arch/powerpc/mm/numa.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index aa98cb3b59d8..fbe23933f731 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
| @@ -334,7 +334,7 @@ out: | |||
| 334 | return nid; | 334 | return nid; |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | static int cpu_numa_callback(struct notifier_block *nfb, | 337 | static int __cpuinit cpu_numa_callback(struct notifier_block *nfb, |
| 338 | unsigned long action, | 338 | unsigned long action, |
| 339 | void *hcpu) | 339 | void *hcpu) |
| 340 | { | 340 | { |
| @@ -609,14 +609,15 @@ static void __init *careful_allocation(int nid, unsigned long size, | |||
| 609 | return (void *)ret; | 609 | return (void *)ret; |
| 610 | } | 610 | } |
| 611 | 611 | ||
| 612 | static struct notifier_block __cpuinitdata ppc64_numa_nb = { | ||
| 613 | .notifier_call = cpu_numa_callback, | ||
| 614 | .priority = 1 /* Must run before sched domains notifier. */ | ||
| 615 | }; | ||
| 616 | |||
| 612 | void __init do_init_bootmem(void) | 617 | void __init do_init_bootmem(void) |
| 613 | { | 618 | { |
| 614 | int nid; | 619 | int nid; |
| 615 | unsigned int i; | 620 | unsigned int i; |
| 616 | static struct notifier_block ppc64_numa_nb = { | ||
| 617 | .notifier_call = cpu_numa_callback, | ||
| 618 | .priority = 1 /* Must run before sched domains notifier. */ | ||
| 619 | }; | ||
| 620 | 621 | ||
| 621 | min_low_pfn = 0; | 622 | min_low_pfn = 0; |
| 622 | max_low_pfn = lmb_end_of_DRAM() >> PAGE_SHIFT; | 623 | max_low_pfn = lmb_end_of_DRAM() >> PAGE_SHIFT; |
