zephyr/tests/kernel/sched/preempt
Alberto Escolar Piedras 0682a51686 tests: kernel: sched: 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: kernel: sched: Bugfix for POSIX arch in TICKLESS 2018-11-13 09:19:03 -05:00
CMakeLists.txt samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
prj.conf tests: preempt: increase stack size for test 2018-08-31 11:14:39 -04:00
testcase.yaml tests: remove bat_commit, replace core with kernel 2018-10-16 09:17:51 -04:00