diff options
author | Dave Jones <davej@redhat.com> | 2005-07-07 20:56:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:42 -0400 |
commit | 8ff8b27bb8ebfd863b49653da1b7bbd8609fcd7e (patch) | |
tree | 16577a65b896e0e123701791a62ac056250f6d99 /include/asm-i386 | |
parent | 3b520b238e018ef0e9d11c9115d5e7d9419c4ef9 (diff) |
[PATCH] Clean up numa defines in mmzone.h
The recent cleanups to asm-i386/mmzone.h were suboptimal nesting an ifdef of
the same symbol. This patch removes some of the ifdef'ery to make things more
readable again.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/mmzone.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/include/asm-i386/mmzone.h b/include/asm-i386/mmzone.h index 33ce5d37e894..08e3cfd86328 100644 --- a/include/asm-i386/mmzone.h +++ b/include/asm-i386/mmzone.h | |||
@@ -8,20 +8,15 @@ | |||
8 | 8 | ||
9 | #include <asm/smp.h> | 9 | #include <asm/smp.h> |
10 | 10 | ||
11 | #if CONFIG_NUMA | 11 | #ifdef CONFIG_NUMA |
12 | extern struct pglist_data *node_data[]; | 12 | extern struct pglist_data *node_data[]; |
13 | #define NODE_DATA(nid) (node_data[nid]) | 13 | #define NODE_DATA(nid) (node_data[nid]) |
14 | 14 | ||
15 | #ifdef CONFIG_NUMA | 15 | #ifdef CONFIG_X86_NUMAQ |
16 | #ifdef CONFIG_X86_NUMAQ | 16 | #include <asm/numaq.h> |
17 | #include <asm/numaq.h> | 17 | #else /* summit or generic arch */ |
18 | #else /* summit or generic arch */ | 18 | #include <asm/srat.h> |
19 | #include <asm/srat.h> | 19 | #endif |
20 | #endif | ||
21 | #else /* !CONFIG_NUMA */ | ||
22 | #define get_memcfg_numa get_memcfg_numa_flat | ||
23 | #define get_zholes_size(n) (0) | ||
24 | #endif /* CONFIG_NUMA */ | ||
25 | 20 | ||
26 | extern int get_memcfg_numa_flat(void ); | 21 | extern int get_memcfg_numa_flat(void ); |
27 | /* | 22 | /* |
@@ -42,6 +37,9 @@ static inline void get_memcfg_numa(void) | |||
42 | get_memcfg_numa_flat(); | 37 | get_memcfg_numa_flat(); |
43 | } | 38 | } |
44 | 39 | ||
40 | #else /* !CONFIG_NUMA */ | ||
41 | #define get_memcfg_numa get_memcfg_numa_flat | ||
42 | #define get_zholes_size(n) (0) | ||
45 | #endif /* CONFIG_NUMA */ | 43 | #endif /* CONFIG_NUMA */ |
46 | 44 | ||
47 | #ifdef CONFIG_DISCONTIGMEM | 45 | #ifdef CONFIG_DISCONTIGMEM |