ClockSource: TSC udelay() asm implementation builtin as a default

This commit is contained in:
CyrIng
2022-08-30 10:08:06 +00:00
parent d91fa65c56
commit 5dc3b62b58
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ TASK_ORDER = 5
MAX_FREQ_HZ ?= 6575000000
MSR_CORE_PERF_UCC ?= MSR_IA32_APERF
MSR_CORE_PERF_URC ?= MSR_IA32_MPERF
DELAY_TSC ?= 1
ARCH_PMC ?=
obj-m := corefreqk.o

View File

@@ -1217,7 +1217,7 @@ void Compute_Interval(void)
#define COMPUTE_LPJ(BCLK_Hz, COF) ( (BCLK_Hz * COF) / HZ )
#if defined(DELAY_TSC) && (DELAY_TSC == 1)
FEAT_MSG("udelay() built with TSC implementation")
/* udelay() built with TSC implementation */
#define CLOCK_TSC( CYCLES, _TIMER, CTR ) \
({ \
__asm__ volatile \