diff options
| -rw-r--r-- | arch/x86/kernel/acpi/boot.c | 1 | ||||
| -rw-r--r-- | arch/x86/kernel/io_apic_32.c | 10 | ||||
| -rw-r--r-- | arch/x86/kernel/io_apic_64.c | 10 | ||||
| -rw-r--r-- | include/asm-x86/genapic_32.h | 5 | ||||
| -rw-r--r-- | include/asm-x86/genapic_64.h | 6 |
5 files changed, 0 insertions, 32 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 785700a08e9d..f489d7a9be92 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
| @@ -1409,7 +1409,6 @@ static int __init dmi_ignore_irq0_timer_override(const struct dmi_system_id *d) | |||
| 1409 | { | 1409 | { |
| 1410 | pr_notice("%s detected: Ignoring BIOS IRQ0 pin2 override\n", d->ident); | 1410 | pr_notice("%s detected: Ignoring BIOS IRQ0 pin2 override\n", d->ident); |
| 1411 | acpi_skip_timer_override = 1; | 1411 | acpi_skip_timer_override = 1; |
| 1412 | force_mask_ioapic_irq_2(); | ||
| 1413 | return 0; | 1412 | return 0; |
| 1414 | } | 1413 | } |
| 1415 | 1414 | ||
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c index c50adb84ea6f..603261a5885c 100644 --- a/arch/x86/kernel/io_apic_32.c +++ b/arch/x86/kernel/io_apic_32.c | |||
| @@ -59,13 +59,6 @@ static struct { int pin, apic; } ioapic_i8259 = { -1, -1 }; | |||
| 59 | static DEFINE_SPINLOCK(ioapic_lock); | 59 | static DEFINE_SPINLOCK(ioapic_lock); |
| 60 | static DEFINE_SPINLOCK(vector_lock); | 60 | static DEFINE_SPINLOCK(vector_lock); |
| 61 | 61 | ||
| 62 | static bool mask_ioapic_irq_2 __initdata; | ||
| 63 | |||
| 64 | void __init force_mask_ioapic_irq_2(void) | ||
| 65 | { | ||
| 66 | mask_ioapic_irq_2 = true; | ||
| 67 | } | ||
| 68 | |||
| 69 | int timer_through_8259 __initdata; | 62 | int timer_through_8259 __initdata; |
| 70 | 63 | ||
| 71 | /* | 64 | /* |
| @@ -2187,9 +2180,6 @@ static inline void __init check_timer(void) | |||
| 2187 | printk(KERN_INFO "..TIMER: vector=0x%02X apic1=%d pin1=%d apic2=%d pin2=%d\n", | 2180 | printk(KERN_INFO "..TIMER: vector=0x%02X apic1=%d pin1=%d apic2=%d pin2=%d\n", |
| 2188 | vector, apic1, pin1, apic2, pin2); | 2181 | vector, apic1, pin1, apic2, pin2); |
| 2189 | 2182 | ||
| 2190 | if (mask_ioapic_irq_2) | ||
| 2191 | mask_IO_APIC_irq(2); | ||
| 2192 | |||
| 2193 | /* | 2183 | /* |
| 2194 | * Some BIOS writers are clueless and report the ExtINTA | 2184 | * Some BIOS writers are clueless and report the ExtINTA |
| 2195 | * I/O APIC input from the cascaded 8259A as the timer | 2185 | * I/O APIC input from the cascaded 8259A as the timer |
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 9e645cba11c4..b16ef029cf88 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
| @@ -94,13 +94,6 @@ static int no_timer_check; | |||
| 94 | 94 | ||
| 95 | static int disable_timer_pin_1 __initdata; | 95 | static int disable_timer_pin_1 __initdata; |
| 96 | 96 | ||
| 97 | static bool mask_ioapic_irq_2 __initdata; | ||
| 98 | |||
| 99 | void __init force_mask_ioapic_irq_2(void) | ||
| 100 | { | ||
| 101 | mask_ioapic_irq_2 = true; | ||
| 102 | } | ||
| 103 | |||
| 104 | int timer_through_8259 __initdata; | 97 | int timer_through_8259 __initdata; |
| 105 | 98 | ||
| 106 | /* Where if anywhere is the i8259 connect in external int mode */ | 99 | /* Where if anywhere is the i8259 connect in external int mode */ |
| @@ -1706,9 +1699,6 @@ static inline void __init check_timer(void) | |||
| 1706 | apic_printk(APIC_VERBOSE,KERN_INFO "..TIMER: vector=0x%02X apic1=%d pin1=%d apic2=%d pin2=%d\n", | 1699 | apic_printk(APIC_VERBOSE,KERN_INFO "..TIMER: vector=0x%02X apic1=%d pin1=%d apic2=%d pin2=%d\n", |
| 1707 | cfg->vector, apic1, pin1, apic2, pin2); | 1700 | cfg->vector, apic1, pin1, apic2, pin2); |
| 1708 | 1701 | ||
| 1709 | if (mask_ioapic_irq_2) | ||
| 1710 | mask_IO_APIC_irq(2); | ||
| 1711 | |||
| 1712 | /* | 1702 | /* |
| 1713 | * Some BIOS writers are clueless and report the ExtINTA | 1703 | * Some BIOS writers are clueless and report the ExtINTA |
| 1714 | * I/O APIC input from the cascaded 8259A as the timer | 1704 | * I/O APIC input from the cascaded 8259A as the timer |
diff --git a/include/asm-x86/genapic_32.h b/include/asm-x86/genapic_32.h index 33a73f5ed222..b02ea6e17de8 100644 --- a/include/asm-x86/genapic_32.h +++ b/include/asm-x86/genapic_32.h | |||
| @@ -119,10 +119,5 @@ enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC}; | |||
| 119 | #define is_uv_system() 0 | 119 | #define is_uv_system() 0 |
| 120 | #define uv_wakeup_secondary(a, b) 1 | 120 | #define uv_wakeup_secondary(a, b) 1 |
| 121 | 121 | ||
| 122 | #ifdef CONFIG_X86_IO_APIC | ||
| 123 | extern void force_mask_ioapic_irq_2(void); | ||
| 124 | #else | ||
| 125 | static inline void force_mask_ioapic_irq_2(void) { } | ||
| 126 | #endif | ||
| 127 | 122 | ||
| 128 | #endif | 123 | #endif |
diff --git a/include/asm-x86/genapic_64.h b/include/asm-x86/genapic_64.h index 647e4e5c2580..0f8504627c41 100644 --- a/include/asm-x86/genapic_64.h +++ b/include/asm-x86/genapic_64.h | |||
| @@ -46,10 +46,4 @@ extern int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip); | |||
| 46 | 46 | ||
| 47 | extern void setup_apic_routing(void); | 47 | extern void setup_apic_routing(void); |
| 48 | 48 | ||
| 49 | #ifdef CONFIG_X86_IO_APIC | ||
| 50 | extern void force_mask_ioapic_irq_2(void); | ||
| 51 | #else | ||
| 52 | static inline void force_mask_ioapic_irq_2(void) { } | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #endif | 49 | #endif |
