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:
parent
f64da13e9b
commit
c08cc01c9d
|
@ -437,6 +437,7 @@ void up_timer_initialize(void)
|
||||||
|
|
||||||
void sim_timer_update(void)
|
void sim_timer_update(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_SIM_WALLTIME_SLEEP
|
||||||
static uint64_t until;
|
static uint64_t until;
|
||||||
|
|
||||||
/* Wait a bit so that the timing is close to the correct rate. */
|
/* 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;
|
until += NSEC_PER_TICK;
|
||||||
host_sleepuntil(until);
|
host_sleepuntil(until);
|
||||||
|
|
||||||
#ifdef CONFIG_SIM_WALLTIME_SLEEP
|
|
||||||
sim_timer_update_internal();
|
sim_timer_update_internal();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue