diff options
Diffstat (limited to 'arch/x86_64/kernel/io_apic.c')
-rw-r--r-- | arch/x86_64/kernel/io_apic.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c index ac7684324954..afd87e64d0a8 100644 --- a/arch/x86_64/kernel/io_apic.c +++ b/arch/x86_64/kernel/io_apic.c | |||
@@ -37,11 +37,14 @@ | |||
37 | #include <asm/desc.h> | 37 | #include <asm/desc.h> |
38 | #include <asm/proto.h> | 38 | #include <asm/proto.h> |
39 | #include <asm/mach_apic.h> | 39 | #include <asm/mach_apic.h> |
40 | #include <asm/acpi.h> | ||
40 | 41 | ||
41 | #define __apicdebuginit __init | 42 | #define __apicdebuginit __init |
42 | 43 | ||
43 | int sis_apic_bug; /* not actually supported, dummy for compile */ | 44 | int sis_apic_bug; /* not actually supported, dummy for compile */ |
44 | 45 | ||
46 | static int no_timer_check; | ||
47 | |||
45 | static DEFINE_SPINLOCK(ioapic_lock); | 48 | static DEFINE_SPINLOCK(ioapic_lock); |
46 | 49 | ||
47 | /* | 50 | /* |
@@ -1601,7 +1604,7 @@ static inline void check_timer(void) | |||
1601 | * Ok, does IRQ0 through the IOAPIC work? | 1604 | * Ok, does IRQ0 through the IOAPIC work? |
1602 | */ | 1605 | */ |
1603 | unmask_IO_APIC_irq(0); | 1606 | unmask_IO_APIC_irq(0); |
1604 | if (timer_irq_works()) { | 1607 | if (!no_timer_check && timer_irq_works()) { |
1605 | nmi_watchdog_default(); | 1608 | nmi_watchdog_default(); |
1606 | if (nmi_watchdog == NMI_IO_APIC) { | 1609 | if (nmi_watchdog == NMI_IO_APIC) { |
1607 | disable_8259A_irq(0); | 1610 | disable_8259A_irq(0); |
@@ -1671,6 +1674,13 @@ static inline void check_timer(void) | |||
1671 | panic("IO-APIC + timer doesn't work! Try using the 'noapic' kernel parameter\n"); | 1674 | panic("IO-APIC + timer doesn't work! Try using the 'noapic' kernel parameter\n"); |
1672 | } | 1675 | } |
1673 | 1676 | ||
1677 | static int __init notimercheck(char *s) | ||
1678 | { | ||
1679 | no_timer_check = 1; | ||
1680 | return 1; | ||
1681 | } | ||
1682 | __setup("no_timer_check", notimercheck); | ||
1683 | |||
1674 | /* | 1684 | /* |
1675 | * | 1685 | * |
1676 | * IRQ's that are handled by the PIC in the MPS IOAPIC case. | 1686 | * IRQ's that are handled by the PIC in the MPS IOAPIC case. |