aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/boot.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-20 19:11:20 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:48:31 -0400
commit3c999f142665265afd0fe9190204dd051f17e505 (patch)
tree83b764c2a90890c22b199d6445cf2e132babe455 /arch/x86/kernel/acpi/boot.c
parent88a6846c70ad6bf33a545d554ace801d69e8a1a5 (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/acpi/boot.c')
-rw-r--r--arch/x86/kernel/acpi/boot.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 6516359922ba..5c0107602b62 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -1787,6 +1787,20 @@ static int __init parse_pci(char *arg)
1787} 1787}
1788early_param("pci", parse_pci); 1788early_param("pci", parse_pci);
1789 1789
1790int __init acpi_mps_check(void)
1791{
1792#if defined(CONFIG_X86_LOCAL_APIC) && !defined(CONFIG_X86_MPPARSE)
1793/* mptable code is not built-in*/
1794 if (acpi_disabled || acpi_noirq) {
1795 printk(KERN_WARNING "MPS support code is not built-in.\n"
1796 "Using acpi=off or acpi=noirq or pci=noacpi "
1797 "may have problem\n");
1798 return 1;
1799 }
1800#endif
1801 return 0;
1802}
1803
1790#ifdef CONFIG_X86_IO_APIC 1804#ifdef CONFIG_X86_IO_APIC
1791static int __init parse_acpi_skip_timer_override(char *arg) 1805static int __init parse_acpi_skip_timer_override(char *arg)
1792{ 1806{