commit | e0a572beebed584ef61f8c2377686e243bc3b0f5 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Mon Mar 26 11:58:10 2018 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Tue Apr 24 03:57:20 2018 +0530 |
tree | eaebb0eef2cca5150b88c24b307668cc8523c9f2 | |
parent | 8606fabf74c0082057b0caf6526907f660523cac [diff] |
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: Andy Ross <andrew.j.ross@intel.com>