Skip to content
Commit cd21e04e authored by Peter Mitsis's avatar Peter Mitsis Committed by Henrik Brix Andersen
Browse files

kernel: Update k_wakeup()



This commit does two things to k_wakeup():

1. It locks the scheduler before marking the thread as not suspended.
As the the clearing of the _THREAD_SUSPENDED bit is not atomic, this
helps ensure that neither another thread nor ISR interrupts this
action (resulting in a corrupted thread_state).

2. The call to flag_ipi() has been removed as it is already being
made within ready_thread().

Signed-off-by: default avatarPeter Mitsis <peter.mitsis@intel.com>
(cherry picked from commit 51ae993c)
parent fe92cf67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment