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:
Andy Ross 2018-07-24 13:37:59 -07:00 committed by Anas Nashif
commit ec554f44d9
22 changed files with 87 additions and 66 deletions

View file

@ -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