[PATCH] [4/4] Fix numa=off

From: Andi Kleen
Date: Wed Jan 12 2005 - 02:11:27 EST


Fix numa=off at end of command line

Fix a long standing bug: numa=off only worked as last argument on
the command line.

Signed-off-by: Andi Kleen <ak@xxxxxxx>

Index: linux/arch/x86_64/mm/numa.c
===================================================================
--- linux.orig/arch/x86_64/mm/numa.c 2005-01-09 18:20:08.%N +0100
+++ linux/arch/x86_64/mm/numa.c 2005-01-12 06:47:00.%N +0100
@@ -265,7 +265,7 @@
/* [numa=off] */
__init int numa_setup(char *opt)
{
- if (!strcmp(opt,"off"))
+ if (!strncmp(opt,"off",3))
numa_off = 1;
#ifdef CONFIG_NUMA_EMU
if(!strncmp(opt, "fake=", 5)) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/