Lines Matching defs:hpet
19 #include <asm/hpet.h>
353 static u64 tsc_read_refs(u64 *p, int hpet)
361 if (hpet)
750 * calibrate cpu using pit, hpet, and ptimer methods. They are available
758 int hpet = is_hpet_enabled(), i, loopmin;
795 * hpet/pmtimer when available. Then do the PIT
800 tsc1 = tsc_read_refs(&ref1, hpet);
802 tsc2 = tsc_read_refs(&ref2, hpet);
808 /* hpet or pmtimer available ? */
817 if (hpet)
836 hpet ? "HPET" : "PMTIMER", i + 1);
861 if (!hpet && !ref1 && !ref2) {
874 hpet ? "HPET" : "PMTIMER");
880 if (!hpet && !ref1 && !ref2) {
897 hpet ? "HPET" : "PMTIMER", tsc_pit_min, tsc_ref_min);
1375 static int hpet;
1392 * Only set hpet once, to avoid mixing hardware
1393 * if the hpet becomes enabled later.
1395 hpet = is_hpet_enabled();
1396 tsc_start = tsc_read_refs(&ref_start, hpet);
1401 tsc_stop = tsc_read_refs(&ref_stop, hpet);
1403 /* hpet or pmtimer available ? */
1413 if (hpet)
1430 hpet ? "HPET" : "PM_TIMER",
1496 * We use device_initcall here, to ensure we run after the hpet