zephyr/tests/kernel
Alberto Escolar Piedras 847b7ccbcc tests: kernel tickless: 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-10-31 19:43:10 -04:00
..
alert/alert_api samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
arm_irq_vector_table samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
arm_runtime_nmi samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
boot_page_table samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
common samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
context samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
critical samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
device samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
early_sleep samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
errno samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
fatal samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
fifo samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
fp_sharing samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
gen_isr_table samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
init samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
interrupt samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
irq_offload samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
lifo samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mbox samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mem_heap/mheap_api_concept samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mem_pool samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mem_protect samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mem_slab samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mp samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
msgq/msgq_api samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
mutex samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
obj_tracing samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
pending samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
pipe samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
poll samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
profiling/profiling_api samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
queue samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
sched tests: sched: schedule_api: Bugfix for POSIX arch in TICKLESS 2018-10-31 19:43:10 -04:00
semaphore samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
sleep tests: sleep: Bugfix for POSIX arch in TICKLESS 2018-10-31 19:43:10 -04:00
smp samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
spinlock samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
stack samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
static_idt samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
threads tests: kernel: Validate set thread name to current thread 2018-10-29 10:17:10 -04:00
tickless tests: kernel tickless: Bugfix for POSIX arch in TICKLESS 2018-10-31 19:43:10 -04:00
timer samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
workq samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00
xip samples, tests: Use semi-accurate project names 2018-10-27 21:31:25 -04:00