Lines Matching full:hpet

20 #include <asm/hpet.h>
357 static u64 tsc_read_refs(u64 *p, int hpet) in tsc_read_refs() argument
365 if (hpet) in tsc_read_refs()
377 * Calculate the TSC frequency from HPET reference
754 * calibrate cpu using pit, hpet, and ptimer methods. They are available
762 int hpet = is_hpet_enabled(), i, loopmin; in pit_hpet_ptimer_calibrate_cpu() local
780 * 2) Reference counter. If available we use the HPET or the in pit_hpet_ptimer_calibrate_cpu()
799 * hpet/pmtimer when available. Then do the PIT in pit_hpet_ptimer_calibrate_cpu()
804 tsc1 = tsc_read_refs(&ref1, hpet); in pit_hpet_ptimer_calibrate_cpu()
806 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu()
812 /* hpet or pmtimer available ? */ in pit_hpet_ptimer_calibrate_cpu()
821 if (hpet) in pit_hpet_ptimer_calibrate_cpu()
840 hpet ? "HPET" : "PMTIMER", i + 1); in pit_hpet_ptimer_calibrate_cpu()
848 * the HPET/PMTIMER to make the result precise. in pit_hpet_ptimer_calibrate_cpu()
865 if (!hpet && !ref1 && !ref2) { in pit_hpet_ptimer_calibrate_cpu()
866 pr_notice("No reference (HPET/PMTIMER) available\n"); in pit_hpet_ptimer_calibrate_cpu()
872 pr_warn("HPET/PMTIMER calibration failed\n"); in pit_hpet_ptimer_calibrate_cpu()
878 hpet ? "HPET" : "PMTIMER"); in pit_hpet_ptimer_calibrate_cpu()
884 if (!hpet && !ref1 && !ref2) { in pit_hpet_ptimer_calibrate_cpu()
891 pr_warn("HPET/PMTIMER calibration failed. Using PIT calibration.\n"); in pit_hpet_ptimer_calibrate_cpu()
901 hpet ? "HPET" : "PMTIMER", tsc_pit_min, tsc_ref_min); in pit_hpet_ptimer_calibrate_cpu()
1318 static int hpet; in tsc_refine_calibration_work() local
1335 * Only set hpet once, to avoid mixing hardware in tsc_refine_calibration_work()
1336 * if the hpet becomes enabled later. in tsc_refine_calibration_work()
1338 hpet = is_hpet_enabled(); in tsc_refine_calibration_work()
1339 tsc_start = tsc_read_refs(&ref_start, hpet); in tsc_refine_calibration_work()
1344 tsc_stop = tsc_read_refs(&ref_stop, hpet); in tsc_refine_calibration_work()
1346 /* hpet or pmtimer available ? */ in tsc_refine_calibration_work()
1356 if (hpet) in tsc_refine_calibration_work()
1373 hpet ? "HPET" : "PM_TIMER", in tsc_refine_calibration_work()
1443 * We use device_initcall here, to ensure we run after the hpet