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
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
device device: Extend device_set_power_state API to support async requests 2019-03-14 14:26:15 +01:00
early_sleep
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
mbox
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
mp all: Update reserved function names 2019-03-11 13:48:42 -04:00
msgq/msgq_api
mutex
obj_tracing
pending
pipe all: Update reserved function names 2019-03-11 13:48:42 -04:00
poll
profiling/profiling_api tests: More SMP disablement 2019-03-20 11:33:29 -05:00
queue
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
workq all: Update reserved function names 2019-03-11 13:48:42 -04:00
xip