Skip to content

Commit

Permalink
[PATCH] x86_64: Don't confuse noapic with noapictimer
Browse files Browse the repository at this point in the history
Handling common prefixes is tricky.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jan 12, 2006
1 parent 256ddb0 commit 0d9cb75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ static __init void parse_cmdline_early (char ** cmdline_p)
!memcmp(from, "disableapic", 11))
disable_apic = 1;

if (!memcmp(from, "noapic", 6))
/* Don't confuse with noapictimer */
if (!memcmp(from, "noapic", 6) &&
(from[6] == ' ' || from[6] == 0))
skip_ioapic_setup = 1;

/* Make sure to not confuse with apic= */
Expand Down

0 comments on commit 0d9cb75

Please sign in to comment.