Searched refs:tsc2 (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/arch/x86/kernel/ |
D | tsc.c | 718 u64 tsc1, tsc2, delta, ref1, ref2; in pit_hpet_ptimer_calibrate_cpu() local 765 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu() 776 if (tsc1 == ULLONG_MAX || tsc2 == ULLONG_MAX) in pit_hpet_ptimer_calibrate_cpu() 779 tsc2 = (tsc2 - tsc1) * 1000000LL; in pit_hpet_ptimer_calibrate_cpu() 781 tsc2 = calc_hpet_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu() 783 tsc2 = calc_pmtimer_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu() 785 tsc_ref_min = min(tsc_ref_min, (unsigned long) tsc2); in pit_hpet_ptimer_calibrate_cpu()
|
/Linux-v5.10/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-decoder.c | 2961 static int intel_pt_tsc_cmp(uint64_t tsc1, uint64_t tsc2) in intel_pt_tsc_cmp() argument 2965 if (tsc1 == tsc2) in intel_pt_tsc_cmp() 2968 if (tsc1 < tsc2) { in intel_pt_tsc_cmp() 2969 if (tsc2 - tsc1 < halfway) in intel_pt_tsc_cmp() 2974 if (tsc1 - tsc2 < halfway) in intel_pt_tsc_cmp()
|