Skip to content

Commit 570a84c

Browse files
committed
board: native_posix: Fix timer for k_busy_wait()
The timer update was not triggering an immediate update of the top HW models timer, which meant a call to k_busy_wait() may have waited for a much longer time than requested (up to 1 OS tick). => Fix it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 0e769c1 commit 570a84c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boards/posix/native_posix/timer_model.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ void hwtimer_wake_in_time(uint64_t time)
260260
if (hw_timer_awake_timer > time) {
261261
hw_timer_awake_timer = time;
262262
hwtimer_update_timer();
263+
hwm_find_next_timer();
263264
}
264265
}
265266

0 commit comments

Comments
 (0)