Skip to content
Commit 4c2fc2ae authored by Andy Ross's avatar Andy Ross Committed by Andrew Boie
Browse files

kernel/queue: Fix SMP race



Calling z_ready_thread() means the thread is now ready and can wake up
at any moment on another CPU.  But we weren't finished setting the
return value!  So the other side could wake up with a spurious "error"
condition if it ran too soon.  Note that on systems with a working
IPI, that wakeup can happen much faster than you might think.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 32354518
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment