From c08cc01c9d6d5a79a08129cc566ed64ef887117f Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 27 Dec 2022 19:45:48 +0800 Subject: [PATCH] sim/oneshot: don't need sleep_until when open CONFIG_SIM_WALLTIME_SIGNAL Signed-off-by: ligd --- arch/sim/src/sim/sim_oneshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/sim/sim_oneshot.c b/arch/sim/src/sim/sim_oneshot.c index d9983571d6..68a46ee0dd 100644 --- a/arch/sim/src/sim/sim_oneshot.c +++ b/arch/sim/src/sim/sim_oneshot.c @@ -437,6 +437,7 @@ void up_timer_initialize(void) void sim_timer_update(void) { +#ifdef CONFIG_SIM_WALLTIME_SLEEP static uint64_t until; /* Wait a bit so that the timing is close to the correct rate. */ @@ -444,7 +445,6 @@ void sim_timer_update(void) until += NSEC_PER_TICK; host_sleepuntil(until); -#ifdef CONFIG_SIM_WALLTIME_SLEEP sim_timer_update_internal(); #endif }