Commit 749e1c8b authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] [4/4] Fix numa=off command line parsing

Fix a long standing bug: numa=off only worked as last argument on
the command line.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c0e28959
...@@ -272,7 +272,7 @@ void __init paging_init(void) ...@@ -272,7 +272,7 @@ void __init paging_init(void)
/* [numa=off] */ /* [numa=off] */
__init int numa_setup(char *opt) __init int numa_setup(char *opt)
{ {
if (!strcmp(opt,"off")) if (!strncmp(opt,"off",3))
numa_off = 1; numa_off = 1;
#ifdef CONFIG_NUMA_EMU #ifdef CONFIG_NUMA_EMU
if(!strncmp(opt, "fake=", 5)) { if(!strncmp(opt, "fake=", 5)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment