zephyr/tests/kernel
Andy Ross 09fdd814df tests/kernel/smp: Give time for a wakeup to take effect
For obvious performance reasons, scheduler state changes (other than
aborting a thread) do not cause synchronous interrupts on the other
CPU.  Doing a k_thread_wakeup() means that the current CPU will run it
synchronously if it's high priority, but if you want to see it run on
the other cores you need to wait for them to reach a scheduling point
on their own.

The test was written to assume that k_thread_wakeup() is synchronous,
but that's not right, and it needs to spin a bit.  This bug was always
present in the test, but masked by a bug in the way that k_sleep() was
handled on SMP.  See #9506.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-03-23 19:28:15 -04:00
..
arm_irq_vector_table all: Update reserved function names 2019-03-11 13:48:42 -04:00
arm_runtime_nmi
boot_page_table x86: modify MMU APIs for multiple page tables 2019-02-14 12:46:36 -05:00
common kernel: fix atomic ops in user mode on some arches 2019-03-18 09:18:00 -04:00
context tests: kernel: context: Fix build issue with RV32M1_LPTMR_TIMER 2019-03-13 17:02:05 -05:00
critical tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 13:02:20 -06:00
device device: Extend device_set_power_state API to support async requests 2019-03-14 14:26:15 +01:00
early_sleep tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 13:02:20 -06:00
fatal all: Update reserved function names 2019-03-11 13:48:42 -04:00
fifo tests/kernel/fifo/fifo_usage: Disable SMP 2019-03-15 19:42:59 +01:00
fp_sharing all: Update reserved function names 2019-03-11 13:48:42 -04:00
gen_isr_table all: Update reserved function names 2019-03-11 13:48:42 -04:00
interrupt all: Update reserved function names 2019-03-11 13:48:42 -04:00
lifo m2gl025_miv: Ignore lifo_usage tests 2019-03-04 12:39:09 -05:00
mbox tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
mem_heap/mheap_api_concept
mem_pool tests: More SMP disablement 2019-03-20 11:33:29 -05:00
mem_protect all: Update reserved function names 2019-03-11 13:48:42 -04:00
mem_slab tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
mp all: Update reserved function names 2019-03-11 13:48:42 -04:00
msgq/msgq_api tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
mutex tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
obj_tracing tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
pending tests: Mass SMP disablement on non-SMP-safe tests 2019-02-28 12:47:12 -08:00
pipe all: Update reserved function names 2019-03-11 13:48:42 -04:00
poll tests: Mass SMP disablement on non-SMP-safe tests 2019-02-27 14:22:06 -08:00
profiling/profiling_api tests: More SMP disablement 2019-03-20 11:33:29 -05:00
queue tests: Mass SMP disablement on non-SMP-safe tests 2019-02-27 14:22:06 -08:00
sched all: Update reserved function names 2019-03-11 13:48:42 -04:00
semaphore tests: More SMP disablement 2019-03-20 11:33:29 -05:00
sleep all: Update reserved function names 2019-03-11 13:48:42 -04:00
smp tests/kernel/smp: Give time for a wakeup to take effect 2019-03-23 19:28:15 -04:00
spinlock all: Update reserved function names 2019-03-11 13:48:42 -04:00
stack tests: More SMP disablement 2019-03-20 11:33:29 -05:00
static_idt
threads all: Update reserved function names 2019-03-11 13:48:42 -04:00
tickless all: Update reserved function names 2019-03-11 13:48:42 -04:00
timer tests/timer_api: revert testcase configuration 2019-03-01 14:53:33 -08:00
workq all: Update reserved function names 2019-03-11 13:48:42 -04:00
xip tests/xip: exclude Minnowboard from test (does not do XIP) 2019-03-07 20:31:31 -05:00