diff options
-rw-r--r-- | arch/x86_64/kernel/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index ee3a5cd7d8d9..33e77ec8da22 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -351,7 +351,9 @@ static __init void parse_cmdline_early (char ** cmdline_p) | |||
351 | if (!memcmp(from, "noapic", 6)) | 351 | if (!memcmp(from, "noapic", 6)) |
352 | skip_ioapic_setup = 1; | 352 | skip_ioapic_setup = 1; |
353 | 353 | ||
354 | if (!memcmp(from, "apic", 4)) { | 354 | /* Make sure to not confuse with apic= */ |
355 | if (!memcmp(from, "apic", 4) && | ||
356 | (from[4] == ' ' || from[4] == 0)) { | ||
355 | skip_ioapic_setup = 0; | 357 | skip_ioapic_setup = 0; |
356 | ioapic_force = 1; | 358 | ioapic_force = 1; |
357 | } | 359 | } |