zephyr/tests/kernel/sched/schedule_api
Alberto Escolar Piedras bdc0a20f4e tests: sched: schedule_api: Bugfix for POSIX arch in TICKLESS
In the POSIX architecture, with the inf_clock "SOC", time does
not pass while the CPU is running. Tests that require time to pass
while busy waiting should call k_busy_wait() or in some other way
set the CPU to idle. This test was setting the CPU to idle while
waiting for the next time slice. This is ok if the system tick
(timer) is active and awaking the CPU every system tick period.
But when configured in tickless mode that is not the case, and the
CPU was set to sleep for an indefinite amount of time.
This commit fixes it by using k_busy_wait(a few microseconds) inside
that busy wait loop instead.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-11-13 09:19:03 -05:00
..
src tests: sched: schedule_api: Bugfix for POSIX arch in TICKLESS 2018-11-13 09:19:03 -05:00
CMakeLists.txt
prj_native_posix.conf
prj.conf
testcase.yaml tests: sched: schedule_api: Increase the minimum ram needed. 2018-10-28 11:43:32 -04:00