mirror of
https://github.com/cyring/CoreFreq.git
synced 2025-07-23 12:13:07 +02:00
ClockSource: TSC udelay() asm implementation builtin as a default
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
|
||||
|
@@ -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 \
|
||||
|
Reference in New Issue
Block a user