Skip to content

Commit

Permalink
[PATCH] x86_64: Don't confuse apic=... command line option with apic
Browse files Browse the repository at this point in the history
Previously apic was foced with apic=logopt was specified.

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 7c0ac55 commit ed8388a
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 @@ -351,7 +351,9 @@ static __init void parse_cmdline_early (char ** cmdline_p)
if (!memcmp(from, "noapic", 6))
skip_ioapic_setup = 1;

if (!memcmp(from, "apic", 4)) {
/* Make sure to not confuse with apic= */
if (!memcmp(from, "apic", 4) &&
(from[4] == ' ' || from[4] == 0)) {
skip_ioapic_setup = 0;
ioapic_force = 1;
}
Expand Down

0 comments on commit ed8388a

Please sign in to comment.