diff options
author | Tejun Heo <tj@kernel.org> | 2011-05-02 08:18:53 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-05-02 08:18:53 -0400 |
commit | e6df595b37c7c033ef7400b4fdd382a2dc4f4131 (patch) | |
tree | 23488915357a565777e244e6c7448c0e142e9248 | |
parent | daf4f480ae24270bac06db4293908d36b4834e21 (diff) |
x86, NUMA: Move numa_nodes_parsed to numa.[hc]
Move numa_nodes_parsed from numa_64.[hc] to numa.[hc] to prepare for
NUMA init path unification.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
-rw-r--r-- | arch/x86/include/asm/numa.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/numa_64.h | 4 | ||||
-rw-r--r-- | arch/x86/mm/numa.c | 1 | ||||
-rw-r--r-- | arch/x86/mm/numa_64.c | 2 |
4 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/include/asm/numa.h b/arch/x86/include/asm/numa.h index 5982d418c358..c24306cd1504 100644 --- a/arch/x86/include/asm/numa.h +++ b/arch/x86/include/asm/numa.h | |||
@@ -19,6 +19,7 @@ | |||
19 | * numa_cpu_node(). | 19 | * numa_cpu_node(). |
20 | */ | 20 | */ |
21 | extern s16 __apicid_to_node[MAX_LOCAL_APIC]; | 21 | extern s16 __apicid_to_node[MAX_LOCAL_APIC]; |
22 | extern nodemask_t numa_nodes_parsed __initdata; | ||
22 | 23 | ||
23 | static inline void set_apicid_to_node(int apicid, s16 node) | 24 | static inline void set_apicid_to_node(int apicid, s16 node) |
24 | { | 25 | { |
diff --git a/arch/x86/include/asm/numa_64.h b/arch/x86/include/asm/numa_64.h index 794da6de6892..e84113f8fff3 100644 --- a/arch/x86/include/asm/numa_64.h +++ b/arch/x86/include/asm/numa_64.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_X86_NUMA_64_H | 1 | #ifndef _ASM_X86_NUMA_64_H |
2 | #define _ASM_X86_NUMA_64_H | 2 | #define _ASM_X86_NUMA_64_H |
3 | 3 | ||
4 | #include <linux/nodemask.h> | ||
5 | |||
6 | #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT)) | 4 | #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT)) |
7 | 5 | ||
8 | extern int numa_off; | 6 | extern int numa_off; |
@@ -17,8 +15,6 @@ extern unsigned long numa_free_all_bootmem(void); | |||
17 | */ | 15 | */ |
18 | #define NODE_MIN_SIZE (4*1024*1024) | 16 | #define NODE_MIN_SIZE (4*1024*1024) |
19 | 17 | ||
20 | extern nodemask_t numa_nodes_parsed __initdata; | ||
21 | |||
22 | extern int __init numa_add_memblk(int nodeid, u64 start, u64 end); | 18 | extern int __init numa_add_memblk(int nodeid, u64 start, u64 end); |
23 | extern void __init numa_set_distance(int from, int to, int distance); | 19 | extern void __init numa_set_distance(int from, int to, int distance); |
24 | 20 | ||
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index e9005c4ea29a..cce174109ca9 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <asm/acpi.h> | 6 | #include <asm/acpi.h> |
7 | 7 | ||
8 | int __initdata numa_off; | 8 | int __initdata numa_off; |
9 | nodemask_t numa_nodes_parsed __initdata; | ||
9 | 10 | ||
10 | static __init int numa_setup(char *opt) | 11 | static __init int numa_setup(char *opt) |
11 | { | 12 | { |
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 287ae798935f..70bd8221f928 100644 --- a/arch/x86/mm/numa_64.c +++ b/arch/x86/mm/numa_64.c | |||
@@ -26,8 +26,6 @@ | |||
26 | struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; | 26 | struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; |
27 | EXPORT_SYMBOL(node_data); | 27 | EXPORT_SYMBOL(node_data); |
28 | 28 | ||
29 | nodemask_t numa_nodes_parsed __initdata; | ||
30 | |||
31 | static struct numa_meminfo numa_meminfo | 29 | static struct numa_meminfo numa_meminfo |
32 | #ifndef CONFIG_MEMORY_HOTPLUG | 30 | #ifndef CONFIG_MEMORY_HOTPLUG |
33 | __initdata | 31 | __initdata |