kernel: Further unify _reschedule APIs
Now that other work has eliminated the two cases where we had to do a reschedule "but yield even if we are cooperative", we can squash both down to a single _reschedule() function which does almost exactly what legacy _Swap() did, but wrapped as a proper scheduler API. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
0447a73f6c
commit
15cb5d7293
16 changed files with 27 additions and 38 deletions
|
@ -46,7 +46,7 @@ void _impl_k_thread_abort(k_tid_t thread)
|
|||
}
|
||||
|
||||
/* The abort handler might have altered the ready queue. */
|
||||
_reschedule_noyield(key);
|
||||
_reschedule(key);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue