From: Andi Kleen Date: Fri, 7 Apr 2006 17:49:42 +0000 (+0200) Subject: [PATCH] x86_64: Clear APIC feature bit when local APIC is disabled X-Git-Tag: v2.6.17-rc2~317 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d1530d82e02fd96d4634a6d6f6538c8b778c43af;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: Clear APIC feature bit when local APIC is disabled Needed for other checks later in ACPI. Pointed out by Len Brown Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 0856ad444f9..c50b06765a8 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -353,8 +353,10 @@ static __init void parse_cmdline_early (char ** cmdline_p) if (fullarg(from, "enable_timer_pin_1")) disable_timer_pin_1 = -1; - if (fullarg(from, "nolapic") || fullarg(from, "disableapic")) + if (fullarg(from, "nolapic") || fullarg(from, "disableapic")) { + clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability); disable_apic = 1; + } if (fullarg(from, "noapic")) skip_ioapic_setup = 1;