aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-23 10:30:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-23 10:30:31 -0500
commitbed4f13065b520e564adffbfcd1c1a764a9c887e (patch)
treed847ddd3bab64cb126ee6679dc4a949386554d55 /arch/x86/kernel/apic.c
parent3e5621edb3392b28efb260ac99b2d26fb8b44e73 (diff)
parentbf8bd66d0580f296f257d371ee41a0a137b541c7 (diff)
Merge branch 'x86/irq' into x86/core
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r--arch/x86/kernel/apic.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index 20c6e12c0475..7397911f8478 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -777,11 +777,7 @@ static void local_apic_timer_interrupt(void)
777 /* 777 /*
778 * the NMI deadlock-detector uses this. 778 * the NMI deadlock-detector uses this.
779 */ 779 */
780#ifdef CONFIG_X86_64 780 inc_irq_stat(apic_timer_irqs);
781 add_pda(apic_timer_irqs, 1);
782#else
783 per_cpu(irq_stat, cpu).apic_timer_irqs++;
784#endif
785 781
786 evt->event_handler(evt); 782 evt->event_handler(evt);
787} 783}
@@ -1677,14 +1673,11 @@ void smp_spurious_interrupt(struct pt_regs *regs)
1677 if (v & (1 << (SPURIOUS_APIC_VECTOR & 0x1f))) 1673 if (v & (1 << (SPURIOUS_APIC_VECTOR & 0x1f)))
1678 ack_APIC_irq(); 1674 ack_APIC_irq();
1679 1675
1680#ifdef CONFIG_X86_64 1676 inc_irq_stat(irq_spurious_count);
1681 add_pda(irq_spurious_count, 1); 1677
1682#else
1683 /* see sw-dev-man vol 3, chapter 7.4.13.5 */ 1678 /* see sw-dev-man vol 3, chapter 7.4.13.5 */
1684 pr_info("spurious APIC interrupt on CPU#%d, " 1679 pr_info("spurious APIC interrupt on CPU#%d, "
1685 "should never happen.\n", smp_processor_id()); 1680 "should never happen.\n", smp_processor_id());
1686 __get_cpu_var(irq_stat).irq_spurious_count++;
1687#endif
1688 irq_exit(); 1681 irq_exit();
1689} 1682}
1690 1683