diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-20 19:11:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:48:31 -0400 |
commit | 3c999f142665265afd0fe9190204dd051f17e505 (patch) | |
tree | 83b764c2a90890c22b199d6445cf2e132babe455 /arch/x86/kernel/setup_64.c | |
parent | 88a6846c70ad6bf33a545d554ace801d69e8a1a5 (diff) |
x86: check command line when CONFIG_X86_MPPARSE is not set, v2
if acpi=off, acpi=noirq and pci=noacpi, we need to disable apic.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index a93300de4da9..175c696ec536 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -302,6 +302,11 @@ void __init setup_arch(char **cmdline_p) | |||
302 | 302 | ||
303 | parse_early_param(); | 303 | parse_early_param(); |
304 | 304 | ||
305 | if (acpi_mps_check()) { | ||
306 | disable_apic = 1; | ||
307 | clear_cpu_cap(&boot_cpu_data, X86_FEATURE_APIC); | ||
308 | } | ||
309 | |||
305 | #ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT | 310 | #ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT |
306 | if (init_ohci1394_dma_early) | 311 | if (init_ohci1394_dma_early) |
307 | init_ohci1394_dma_on_all_controllers(); | 312 | init_ohci1394_dma_on_all_controllers(); |
@@ -723,6 +728,10 @@ static void __cpuinit early_identify_cpu(struct cpuinfo_x86 *c) | |||
723 | cpu_devs[c->x86_vendor]->c_early_init(c); | 728 | cpu_devs[c->x86_vendor]->c_early_init(c); |
724 | 729 | ||
725 | validate_pat_support(c); | 730 | validate_pat_support(c); |
731 | |||
732 | /* early_param could clear that, but recall get it set again */ | ||
733 | if (disable_apic) | ||
734 | clear_cpu_cap(c, X86_FEATURE_APIC); | ||
726 | } | 735 | } |
727 | 736 | ||
728 | /* | 737 | /* |