sim/oneshot: don't need sleep_until when open CONFIG_SIM_WALLTIME_SIGNAL

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-12-27 19:45:48 +08:00 committed by Xiang Xiao
parent f64da13e9b
commit c08cc01c9d

View File

@ -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
}