Skip to contentSkip to conversation

Fix numa=off

PATCH In review Andi Kleen 1 participant 1 message Jan 12, 2005

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 4/4 Fix numa=off

Fix numa=off at end of command line

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

arch/x86_64/mm/numa.c +1 -1
Index: linux/arch/x86_64/mm/numa.c
===================================================================
@@ -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)) {