@@ -12,6 +12,9 @@ typedef struct {
unsigned int apic_timer_irqs; /* arch dependent */
unsigned int irq_spurious_count;
#endif
+#ifdef CONFIG_HPET_TIMER
+ unsigned int hpet_timer_irqs;
+#endif
unsigned int x86_platform_ipis; /* arch dependent */
unsigned int apic_perf_irqs;
unsigned int apic_irq_work_irqs;
@@ -80,8 +80,15 @@ static inline int mce_in_progress(void)
*/
static inline unsigned int get_timer_irqs(int cpu)
{
- return per_cpu(irq_stat, cpu).apic_timer_irqs +
+ unsigned int irqs;
+#ifdef CONFIG_HPET_TIMER
+ irqs = per_cpu(irq_stat, cpu).hpet_timer_irqs;
+#else
+ irqs = 0;
+#endif
+ irqs += per_cpu(irq_stat, cpu).apic_timer_irqs +
per_cpu(irq_stat, cpu).irq0_irqs;
+ return irqs;
}
#ifdef CONFIG_SMP
@@ -517,6 +517,7 @@ static irqreturn_t hpet_interrupt_handler(int irq, void *data)
struct hpet_dev *dev = (struct hpet_dev *)data;
struct clock_event_device *hevt = &dev->evt;
+ inc_irq_stat(hpet_timer_irqs);
if (!hevt->event_handler) {
printk(KERN_INFO "Spurious HPET timer interrupt on HPET timer %d\n",
dev->num);
@@ -56,7 +56,7 @@ unsigned long profile_pc(struct pt_regs *regs)
EXPORT_SYMBOL(profile_pc);
/*
- * Default timer interrupt handler for PIT/HPET
+ * Default timer interrupt handler for PIT
*/
static irqreturn_t timer_interrupt(int irq, void *dev_id)
{