kernel, posix: Move ready_one_thread() to scheduler
The POSIX layer had a simple ready_one_thread() utility. Move this to the scheduler API (with a prepended underscore -- it's an internal API) so that it can be synchronized along with the rest of the scheduler. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
22642cf309
commit
8a4b2e8cf2
4 changed files with 12 additions and 17 deletions
|
@ -509,6 +509,14 @@ static inline struct k_thread *_unpend1_no_timeout(_wait_q_t *wait_q)
|
|||
return thread;
|
||||
}
|
||||
|
||||
static inline void _ready_one_thread(_wait_q_t *wq)
|
||||
{
|
||||
struct k_thread *th = _unpend_first_thread(wq);
|
||||
|
||||
if (th) {
|
||||
_ready_thread(th);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue