mirror of
https://github.com/apache/nuttx.git
synced 2026-08-21 13:38:28 +00:00
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:
parent
da35465d43
commit
ee06211e05
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
unsigned long g_x86_64_timer_freq;
|
||||
extern unsigned long g_x86_64_timer_freq;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue