@@ -452,10 +452,12 @@ EXPORT_SYMBOL_GPL(setup_APIC_eilvt);
/*
* Program the next event, relative to now
*/
+void check_hpet(void);
static int lapic_next_event(unsigned long delta,
struct clock_event_device *evt)
{
apic_write(APIC_TMICT, delta);
+ check_hpet();
return 0;
}
@@ -367,6 +367,15 @@ static void hpet_set_mode(enum clock_event_mode mode,
}
}
+void check_hpet(void)
+{
+ u32 cnt1,cnt2;
+
+ cnt1 = hpet_readl(HPET_COUNTER);
+ cnt2 = hpet_readl(HPET_COUNTER);
+ if(cnt2-cnt1>1000) printk("So big! (%u)\n",cnt2-cnt1);
+}
+
static int hpet_next_event(unsigned long delta,
struct clock_event_device *evt, int timer)
{