summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-01-11 21:42:57 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 03:01:13 (GMT)
commited8388a5d9db0445322f86ee8381b0f04a2057ee (patch)
treeeba3d011ef4973ff7568274215f43f0508e848e5
parent7c0ac555b0b927ee0b3ca6200617f43dbdbaffb8 (diff)
downloadlinux-fsl-qoriq-ed8388a5d9db0445322f86ee8381b0f04a2057ee.tar.xz
[PATCH] x86_64: Don't confuse apic=... command line option with apic
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>
-rw-r--r--arch/x86_64/kernel/setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index ee3a5cd..33e77ec 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)
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;
}