kernel: remove unused _THREAD_TIMEOUT_INIT and _THREAD_ERRNO_INIT
_THREAD_TIMEOUT_INIT() has been replaced by _nano_timeout_thread_init(), so it can be removed. _THREAD_ERRNO_INIT() is defined, but never used. Ben suspects that this is a bug, and that there should be some code that calls it. Jira: ZEP-1326 Change-Id: I476c316b80e9f34d1ed61971229ed9afafc80d8a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
7e5df0cc02
commit
5bb0169d02
1 changed files with 0 additions and 18 deletions
|
@ -337,24 +337,6 @@ extern void k_thread_abort(k_tid_t thread);
|
|||
/* timeout is not in use */
|
||||
#define _INACTIVE (-1)
|
||||
|
||||
#ifdef CONFIG_SYS_CLOCK_EXISTS
|
||||
#define _THREAD_TIMEOUT_INIT(obj) \
|
||||
(obj).nano_timeout = { \
|
||||
.node = { {0}, {0} }, \
|
||||
.thread = NULL, \
|
||||
.wait_q = NULL, \
|
||||
.delta_ticks_from_prev = _INACTIVE, \
|
||||
},
|
||||
#else
|
||||
#define _THREAD_TIMEOUT_INIT(obj)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ERRNO
|
||||
#define _THREAD_ERRNO_INIT(obj) (obj).errno_var = 0,
|
||||
#else
|
||||
#define _THREAD_ERRNO_INIT(obj)
|
||||
#endif
|
||||
|
||||
struct _static_thread_data {
|
||||
union {
|
||||
char *init_stack;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue