Home
last modified time | relevance | path

Searched refs:tsc2 (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/arch/x86/kernel/
Dtsc.c711 u64 tsc1, tsc2, delta, ref1, ref2; in pit_hpet_ptimer_calibrate_cpu() local
758 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu()
769 if (tsc1 == ULLONG_MAX || tsc2 == ULLONG_MAX) in pit_hpet_ptimer_calibrate_cpu()
772 tsc2 = (tsc2 - tsc1) * 1000000LL; in pit_hpet_ptimer_calibrate_cpu()
774 tsc2 = calc_hpet_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu()
776 tsc2 = calc_pmtimer_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu()
778 tsc_ref_min = min(tsc_ref_min, (unsigned long) tsc2); in pit_hpet_ptimer_calibrate_cpu()
/Linux-v5.4/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c2787 static int intel_pt_tsc_cmp(uint64_t tsc1, uint64_t tsc2) in intel_pt_tsc_cmp() argument
2791 if (tsc1 == tsc2) in intel_pt_tsc_cmp()
2794 if (tsc1 < tsc2) { in intel_pt_tsc_cmp()
2795 if (tsc2 - tsc1 < halfway) in intel_pt_tsc_cmp()
2800 if (tsc1 - tsc2 < halfway) in intel_pt_tsc_cmp()