arch/x86_64/intel64: fix build break for timerisr

fix these errors when build with CONFIG_SCHED_TICKLESS=n:

1. intel64_tsc_timerisr.c:56: multiple definition of `g_x86_64_timer_freq';
2. intel64_cpustart.c:196: undefined reference to `get_tsc_adjust'

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2025-03-07 13:56:42 +01:00 committed by archer
parent da35465d43
commit ee06211e05
2 changed files with 3 additions and 3 deletions

View file

@ -23,10 +23,10 @@ config ARCH_INTEL64_HAVE_TSC
config ARCH_INTEL64_HAS_TSC_ADJUST
bool "MSR_IA32_TSC_ADJUST support"
depends on ARCH_INTEL64_HAVE_TSC
depends on ARCH_INTEL64_HAVE_TSC && SCHED_TICKLESS
default y
---help---
MSR_IA32_TSC_ADJUST is used to adjust the offset of the Time Stamp Counter (TSC).
MSR_IA32_TSC_ADJUST is used to adjust the offset of the Time Stamp Counter (TSC).
config ARCH_INTEL64_CACHE_LINESIZE

View file

@ -55,7 +55,7 @@
* Private Data
****************************************************************************/
unsigned long g_x86_64_timer_freq;
extern unsigned long g_x86_64_timer_freq;
/****************************************************************************
* Private Functions