summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/srat.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-08 18:31:54 -0700
committerIngo Molnar <mingo@elte.hu>2008-06-10 11:34:42 +0200
commitd49c4288407b2ffa8cab270cb5bc6882abe969f6 (patch)
tree8ad69dcc6f70ab18a4dfdf8d39dc4dff96ae1fd9 /include/asm-x86/srat.h
parente0da33646826b66ef933d47ea2fb7a693fd849bf (diff)
downloadblackbird-op-linux-d49c4288407b2ffa8cab270cb5bc6882abe969f6.tar.gz
blackbird-op-linux-d49c4288407b2ffa8cab270cb5bc6882abe969f6.zip
x86: make generic arch support NUMAQ
... so it could fall back to normal numa and we'd reduce the impact of the NUMAQ subarch. NUMAQ depends on GENERICARCH also decouple genericarch numa from acpi. also make it fall back to bigsmp if apicid > 8. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/srat.h')
-rw-r--r--include/asm-x86/srat.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/asm-x86/srat.h b/include/asm-x86/srat.h
index f4bba131d068..456fe0b5a921 100644
--- a/include/asm-x86/srat.h
+++ b/include/asm-x86/srat.h
@@ -27,11 +27,13 @@
#ifndef _ASM_SRAT_H_
#define _ASM_SRAT_H_
-#ifndef CONFIG_ACPI_SRAT
-#error CONFIG_ACPI_SRAT not defined, and srat.h header has been included
-#endif
-
+#ifdef CONFIG_ACPI_SRAT
extern int get_memcfg_from_srat(void);
-extern unsigned long *get_zholes_size(int);
+#else
+static inline int get_memcfg_from_srat(void)
+{
+ return 0;
+}
+#endif
#endif /* _ASM_SRAT_H_ */
OpenPOWER on IntegriCloud