zephyr/kernel/unified/include
Benjamin Walsh a36e0cf651 kernel: remove K_TIMING thread flag
The fact that a thread is timing out was tracked via two flags: the
K_TIMING thread flag bit, and the thread's timeout's
delta_ticks_from_prev being -1 or not. This duplication could
potentially cause discrepancies if the two flags got out-of-sync, and
there was no benfits to having both.

Since timeouts that are not parts of a thread rely on the value of
delta_ticks_from_prev, standardize on it.

Since the K_TIMING bit is removed from the thread's flags, K_READY would
not reflect the reality anymore. It is removed and replaced by
_is_thread_prevented_froM_running(), which looks at the state flags that
are relevant. A thread that is ready now is not prevented from running
and does not have an active timeout.

Change-Id: I902ef9fb7801b00626df491f5108971817750daa
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-11-26 14:04:18 +00:00
..
gen_offset.h kernel: remove last instances of tNANO in comments 2016-11-14 10:30:24 -05:00
kernel_offsets.h kernel: remove last instances of tNANO in comments 2016-11-14 10:30:24 -05:00
kernel_structs.h kernel: remove K_TIMING thread flag 2016-11-26 14:04:18 +00:00
ksched.h kernel: remove K_TIMING thread flag 2016-11-26 14:04:18 +00:00
nano_internal.h kernel/arch: remove unused uk_task_ptr parameter from _new_thread() 2016-11-23 00:23:57 +00:00
offsets_short.h kernel/arch: consolidate tTCS and TNANO definitions 2016-11-12 07:04:52 -05:00
timeout_q.h kernel: remove K_TIMING thread flag 2016-11-26 14:04:18 +00:00
wait_q.h kernel: remove K_TIMING thread flag 2016-11-26 14:04:18 +00:00