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:
Andy Ross 2018-04-11 08:21:26 -07:00 committed by Anas Nashif
commit 8a4b2e8cf2
4 changed files with 12 additions and 17 deletions

View file

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