mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
arch/x86_64: Fix up_timer compilation error
This commit fix up_timer compilation error. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
e6548ead20
commit
d0779e0eef
@@ -76,7 +76,12 @@
|
|||||||
|
|
||||||
extern unsigned long g_x86_64_timer_freq;
|
extern unsigned long g_x86_64_timer_freq;
|
||||||
|
|
||||||
|
#ifndef CONFIG_SCHED_TICKLESS_ALARM
|
||||||
|
static uint64_t g_goal_time;
|
||||||
|
#else
|
||||||
static struct timespec g_goal_time_ts;
|
static struct timespec g_goal_time_ts;
|
||||||
|
#endif
|
||||||
|
|
||||||
static uint64_t g_last_stop_time;
|
static uint64_t g_last_stop_time;
|
||||||
static uint64_t g_start_tsc;
|
static uint64_t g_start_tsc;
|
||||||
static uint32_t g_timer_active;
|
static uint32_t g_timer_active;
|
||||||
@@ -336,7 +341,7 @@ void up_timer_expire(void)
|
|||||||
g_timer_active = 0;
|
g_timer_active = 0;
|
||||||
|
|
||||||
up_mask_tmr();
|
up_mask_tmr();
|
||||||
sched_timer_expiration();
|
nxsched_timer_expiration();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* CONFIG_SCHED_TICKLESS_ALARM */
|
#else /* CONFIG_SCHED_TICKLESS_ALARM */
|
||||||
|
|||||||
Reference in New Issue
Block a user