unified: clean-up timeout code for unpending a thread
Integrate _timeout_remove_tcs_from_wait_q() into _unpend_thread_timing_out(). Change-Id: Id57d9fd8f9e877e580460091172aaabf451f3d4b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
688973e5ab
commit
601b354ffe
2 changed files with 7 additions and 10 deletions
|
@ -31,11 +31,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_NANO_TIMEOUTS)
|
||||
static inline void _timeout_remove_tcs_from_wait_q(struct tcs *tcs)
|
||||
{
|
||||
_unpend_thread(tcs);
|
||||
tcs->timeout.wait_q = NULL;
|
||||
}
|
||||
#include <timeout_q.h>
|
||||
|
||||
#elif defined(CONFIG_NANO_TIMERS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue