kernel: Split reschdule & pend into irq/spin lock versions
Just like with _Swap(), we need two variants of these utilities which can atomically release a lock and context switch. The naming shifts (for byte count reasons) to _reschedule/_pend_curr, and both have an _irqlock variant which takes the traditional locking. Just refactoring. No logic changes. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
fb505b3cfd
commit
ec554f44d9
22 changed files with 87 additions and 66 deletions
|
@ -37,7 +37,7 @@ void _impl_k_thread_abort(k_tid_t thread)
|
|||
_k_thread_single_abort(thread);
|
||||
_thread_monitor_exit(thread);
|
||||
|
||||
_reschedule(key);
|
||||
_reschedule_irqlock(key);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue