Home
last modified time | relevance | path

Searched refs:tsc2 (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dtsc.c718 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()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dtsc.c755 u64 tsc1, tsc2, delta, ref1, ref2; in pit_hpet_ptimer_calibrate_cpu() local
802 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu()
813 if (tsc1 == ULLONG_MAX || tsc2 == ULLONG_MAX) in pit_hpet_ptimer_calibrate_cpu()
816 tsc2 = (tsc2 - tsc1) * 1000000LL; in pit_hpet_ptimer_calibrate_cpu()
818 tsc2 = calc_hpet_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu()
820 tsc2 = calc_pmtimer_ref(tsc2, ref1, ref2); in pit_hpet_ptimer_calibrate_cpu()
822 tsc_ref_min = min(tsc_ref_min, (unsigned long) tsc2); in pit_hpet_ptimer_calibrate_cpu()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c3021 * @tsc2: second TSC to compare
3028 * Return: %-1 if @tsc1 is before @tsc2, %0 if @tsc1 == @tsc2, %1 if @tsc1 is
3029 * after @tsc2.
3031 static int intel_pt_tsc_cmp(uint64_t tsc1, uint64_t tsc2) in intel_pt_tsc_cmp() argument
3035 if (tsc1 == tsc2) in intel_pt_tsc_cmp()
3038 if (tsc1 < tsc2) { in intel_pt_tsc_cmp()
3039 if (tsc2 - tsc1 < halfway) in intel_pt_tsc_cmp()
3044 if (tsc1 - tsc2 < halfway) in intel_pt_tsc_cmp()
/kernel/linux/linux-6.6/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c4199 * @tsc2: second TSC to compare
4206 * Return: %-1 if @tsc1 is before @tsc2, %0 if @tsc1 == @tsc2, %1 if @tsc1 is
4207 * after @tsc2.
4209 static int intel_pt_tsc_cmp(uint64_t tsc1, uint64_t tsc2) in intel_pt_tsc_cmp() argument
4213 if (tsc1 == tsc2) in intel_pt_tsc_cmp()
4216 if (tsc1 < tsc2) { in intel_pt_tsc_cmp()
4217 if (tsc2 - tsc1 < halfway) in intel_pt_tsc_cmp()
4222 if (tsc1 - tsc2 < halfway) in intel_pt_tsc_cmp()

Completed in 12 milliseconds