diff options
author | Mike Kravetz <kravetz@us.ibm.com> | 2005-12-05 15:06:42 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:57 -0500 |
commit | 237a0989e2902b7d43c4228a36d82f8691fb2118 (patch) | |
tree | 411b5e4978ac15ab283378610fef3941c880711a /include/asm-powerpc/sparsemem.h | |
parent | b5666f70395016a55cc9d57826508b8a346398d0 (diff) |
[PATCH] powerpc: numa placement for dynamically added memory
This places dynamically added memory within the appropriate
numa node. A new routine hot_add_scn_to_nid() replicates most of
the memory scanning code in parse_numa_properties().
Signed-off-by: Mike Kravetz <kravetz@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/sparsemem.h')
-rw-r--r-- | include/asm-powerpc/sparsemem.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/sparsemem.h b/include/asm-powerpc/sparsemem.h index ba1b34fdb967..c3f17d442f7d 100644 --- a/include/asm-powerpc/sparsemem.h +++ b/include/asm-powerpc/sparsemem.h | |||
@@ -13,6 +13,14 @@ | |||
13 | 13 | ||
14 | #ifdef CONFIG_MEMORY_HOTPLUG | 14 | #ifdef CONFIG_MEMORY_HOTPLUG |
15 | extern void create_section_mapping(unsigned long start, unsigned long end); | 15 | extern void create_section_mapping(unsigned long start, unsigned long end); |
16 | #ifdef CONFIG_NUMA | ||
17 | extern int hot_add_scn_to_nid(unsigned long scn_addr); | ||
18 | #else | ||
19 | static inline int hot_add_scn_to_nid(unsigned long scn_addr) | ||
20 | { | ||
21 | return 0; | ||
22 | } | ||
23 | #endif /* CONFIG_NUMA */ | ||
16 | #endif /* CONFIG_MEMORY_HOTPLUG */ | 24 | #endif /* CONFIG_MEMORY_HOTPLUG */ |
17 | 25 | ||
18 | #endif /* CONFIG_SPARSEMEM */ | 26 | #endif /* CONFIG_SPARSEMEM */ |