aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/io_apic_32.c9
-rw-r--r--arch/x86/kernel/io_apic_64.c10
2 files changed, 10 insertions, 9 deletions
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
index 51e5519ee1a7..ce682e873aa7 100644
--- a/arch/x86/kernel/io_apic_32.c
+++ b/arch/x86/kernel/io_apic_32.c
@@ -1302,9 +1302,10 @@ static void __init setup_IO_APIC_irqs(void)
1302} 1302}
1303 1303
1304/* 1304/*
1305 * Set up the 8259A-master output pin: 1305 * Set up the timer pin, possibly with the 8259A-master behind.
1306 */ 1306 */
1307static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, int vector) 1307static void __init setup_timer_IRQ0_pin(unsigned int apic, unsigned int pin,
1308 int vector)
1308{ 1309{
1309 struct IO_APIC_route_entry entry; 1310 struct IO_APIC_route_entry entry;
1310 1311
@@ -1324,7 +1325,7 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
1324 1325
1325 /* 1326 /*
1326 * The timer IRQ doesn't have to know that behind the 1327 * The timer IRQ doesn't have to know that behind the
1327 * scene we have a 8259A-master in AEOI mode ... 1328 * scene we may have a 8259A-master in AEOI mode ...
1328 */ 1329 */
1329 ioapic_register_intr(0, vector, IOAPIC_EDGE); 1330 ioapic_register_intr(0, vector, IOAPIC_EDGE);
1330 1331
@@ -2183,7 +2184,7 @@ static inline void __init check_timer(void)
2183 /* 2184 /*
2184 * legacy devices should be connected to IO APIC #0 2185 * legacy devices should be connected to IO APIC #0
2185 */ 2186 */
2186 setup_ExtINT_IRQ0_pin(apic2, pin2, vector); 2187 setup_timer_IRQ0_pin(apic2, pin2, vector);
2187 enable_8259A_irq(0); 2188 enable_8259A_irq(0);
2188 if (timer_irq_works()) { 2189 if (timer_irq_works()) {
2189 printk("works.\n"); 2190 printk("works.\n");
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index 565f19b01bf4..6c4635fa97a6 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -897,10 +897,10 @@ static void __init setup_IO_APIC_irqs(void)
897} 897}
898 898
899/* 899/*
900 * Set up the 8259A-master output pin as broadcast to all 900 * Set up the timer pin, possibly with the 8259A-master behind.
901 * CPUs.
902 */ 901 */
903static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, int vector) 902static void __init setup_timer_IRQ0_pin(unsigned int apic, unsigned int pin,
903 int vector)
904{ 904{
905 struct IO_APIC_route_entry entry; 905 struct IO_APIC_route_entry entry;
906 906
@@ -920,7 +920,7 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
920 920
921 /* 921 /*
922 * The timer IRQ doesn't have to know that behind the 922 * The timer IRQ doesn't have to know that behind the
923 * scene we have a 8259A-master in AEOI mode ... 923 * scene we may have a 8259A-master in AEOI mode ...
924 */ 924 */
925 set_irq_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq, "edge"); 925 set_irq_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq, "edge");
926 926
@@ -1690,7 +1690,7 @@ static inline void __init check_timer(void)
1690 /* 1690 /*
1691 * legacy devices should be connected to IO APIC #0 1691 * legacy devices should be connected to IO APIC #0
1692 */ 1692 */
1693 setup_ExtINT_IRQ0_pin(apic2, pin2, cfg->vector); 1693 setup_timer_IRQ0_pin(apic2, pin2, cfg->vector);
1694 enable_8259A_irq(0); 1694 enable_8259A_irq(0);
1695 if (timer_irq_works()) { 1695 if (timer_irq_works()) {
1696 apic_printk(APIC_VERBOSE," works.\n"); 1696 apic_printk(APIC_VERBOSE," works.\n");