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
|
@ -21,8 +21,7 @@ extern k_tid_t const _idle_thread;
|
|||
|
||||
extern void _add_thread_to_ready_q(struct k_thread *thread);
|
||||
extern void _remove_thread_from_ready_q(struct k_thread *thread);
|
||||
extern int _reschedule_noyield(int key);
|
||||
extern int _reschedule_yield(int key);
|
||||
extern int _reschedule(int key);
|
||||
extern void k_sched_unlock(void);
|
||||
extern void _pend_thread(struct k_thread *thread,
|
||||
_wait_q_t *wait_q, s32_t timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue