]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: x2apic, IR: Clean up panic() with nox2apic boot option
authorSuresh Siddha <suresh.b.siddha@intel.com>
Mon, 20 Apr 2009 20:02:29 +0000 (13:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 21 Apr 2009 07:08:26 +0000 (09:08 +0200)
Instead of panic() ignore the "nox2apic" boot option when BIOS
has already enabled x2apic prior to OS handover.

[ Impact: printk warning instead of panic() when BIOS has enabled x2apic already ]

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: dwmw2@infradead.org
Cc: Weidong Han <weidong.han@intel.com>
LKML-Reference: <20090420200450.425091000@linux-os.sc.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/apic.c

index 2b30e520dce37fd6411aaa0758f1b651b875af25..d32f5589f1ddce7203da4b27921afe9eaad037ee 100644 (file)
@@ -141,8 +141,12 @@ static int x2apic_preenabled;
 static int disable_x2apic;
 static __init int setup_nox2apic(char *str)
 {
-       if (x2apic_enabled())
-               panic("Bios already enabled x2apic, can't enforce nox2apic");
+       if (x2apic_enabled()) {
+               pr_warning("Bios already enabled x2apic, "
+                          "can't enforce nox2apic");
+               return 0;
+       }
+
        disable_x2apic = 1;
        setup_clear_cpu_cap(X86_FEATURE_X2APIC);
        return 0;