aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/numa.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-01-19 20:27:25 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-19 20:27:25 -0800
commit12fcdba1b7ae8b25696433f420b775aeb556d89b (patch)
tree2826a8e5ebce9296ae8a53f2eb35c49946aadeee /arch/x86/mm/numa.c
parent1268afe676ee9431a229fc68a2efb0dad4d5852f (diff)
parent9032160275ba018003ff390835ff8ed2b5b788b8 (diff)
downloadkernel_samsung_smdk4412-12fcdba1b7ae8b25696433f420b775aeb556d89b.zip
kernel_samsung_smdk4412-12fcdba1b7ae8b25696433f420b775aeb556d89b.tar.gz
kernel_samsung_smdk4412-12fcdba1b7ae8b25696433f420b775aeb556d89b.tar.bz2
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Unify "numa=" command line option handling Revert "x86: Make relocatable kernel work with new binutils"
Diffstat (limited to 'arch/x86/mm/numa.c')
-rw-r--r--arch/x86/mm/numa.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
index 787c52c..ebf6d78 100644
--- a/arch/x86/mm/numa.c
+++ b/arch/x86/mm/numa.c
@@ -2,6 +2,28 @@
#include <linux/topology.h>
#include <linux/module.h>
#include <linux/bootmem.h>
+#include <asm/numa.h>
+#include <asm/acpi.h>
+
+int __initdata numa_off;
+
+static __init int numa_setup(char *opt)
+{
+ if (!opt)
+ return -EINVAL;
+ if (!strncmp(opt, "off", 3))
+ numa_off = 1;
+#ifdef CONFIG_NUMA_EMU
+ if (!strncmp(opt, "fake=", 5))
+ numa_emu_cmdline(opt + 5);
+#endif
+#ifdef CONFIG_ACPI_NUMA
+ if (!strncmp(opt, "noacpi", 6))
+ acpi_numa = -1;
+#endif
+ return 0;
+}
+early_param("numa", numa_setup);
/*
* Which logical CPUs are on which nodes