Skip to content
Commit e0a572be authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

kernel: Refactor, unifying _pend_current_thread() + _Swap() idiom



Everywhere the current thread is pended, the code is going to have to
do a _Swap() soon afterward, yet the scheduler API exposed these as
separate steps.  Unify this pattern everywhere it appears, which saves
some code bytes and gets _Swap() out of the general scheduler API at
zero cost.

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