aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-12 06:00:02 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-12 06:00:14 -0500
commit92bf73e90a35d40ebc1446488218f03833b36f86 (patch)
tree8aaae58fcb7f3e06e63a5214f910acf47f4cc9d6 /arch/x86/kernel/apic.c
parent447557ac7ce120306b4a31d6003faef39cb1bf14 (diff)
parent915b0d0104b72fd36af088ba4b11b5690bc96a6c (diff)
Merge branch 'x86/irq' into perfcounters/core
( with manual semantic merge of arch/x86/kernel/cpu/perf_counter.c )
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 8ab8c1858672..0579ec1cd6e3 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -784,11 +784,7 @@ static void local_apic_timer_interrupt(void)
784 /* 784 /*
785 * the NMI deadlock-detector uses this. 785 * the NMI deadlock-detector uses this.
786 */ 786 */
787#ifdef CONFIG_X86_64 787 inc_irq_stat(apic_timer_irqs);
788 add_pda(apic_timer_irqs, 1);
789#else
790 per_cpu(irq_stat, cpu).apic_timer_irqs++;
791#endif
792 788
793 evt->event_handler(evt); 789 evt->event_handler(evt);
794} 790}
@@ -1697,14 +1693,11 @@ void smp_spurious_interrupt(struct pt_regs *regs)
1697 if (v & (1 << (SPURIOUS_APIC_VECTOR & 0x1f))) 1693 if (v & (1 << (SPURIOUS_APIC_VECTOR & 0x1f)))
1698 ack_APIC_irq(); 1694 ack_APIC_irq();
1699 1695
1700#ifdef CONFIG_X86_64 1696 inc_irq_stat(irq_spurious_count);
1701 add_pda(irq_spurious_count, 1); 1697
1702#else
1703 /* see sw-dev-man vol 3, chapter 7.4.13.5 */ 1698 /* see sw-dev-man vol 3, chapter 7.4.13.5 */
1704 printk(KERN_INFO "spurious APIC interrupt on CPU#%d, " 1699 printk(KERN_INFO "spurious APIC interrupt on CPU#%d, "
1705 "should never happen.\n", smp_processor_id()); 1700 "should never happen.\n", smp_processor_id());
1706 __get_cpu_var(irq_stat).irq_spurious_count++;
1707#endif
1708 irq_exit(); 1701 irq_exit();
1709} 1702}
1710 1703