workqueues: remove object init calls

k_work and k_work_q are not kernel objects, nor will they
be. k_work_q contains some kernel objects which are tracked
independently.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2018-11-12 15:13:08 -08:00 committed by Anas Nashif
commit 8acf899a0d
2 changed files with 0 additions and 4 deletions

View file

@ -2527,7 +2527,6 @@ extern struct k_work_q k_sys_work_q;
static inline void k_work_init(struct k_work *work, k_work_handler_t handler)
{
*work = (struct k_work)_K_WORK_INITIALIZER(handler);
_k_object_init(work);
}
/**

View file

@ -57,7 +57,6 @@ void k_work_q_start(struct k_work_q *work_q, k_thread_stack_t *stack,
work_q, 0, 0, prio, 0, 0);
k_thread_name_set(&work_q->thread, WORKQUEUE_THREAD_NAME);
_k_object_init(work_q);
}
#ifdef CONFIG_SYS_CLOCK_EXISTS
@ -75,8 +74,6 @@ void k_delayed_work_init(struct k_delayed_work *work, k_work_handler_t handler)
k_work_init(&work->work, handler);
_init_timeout(&work->timeout, work_timeout);
work->work_q = NULL;
_k_object_init(work);
}
int k_delayed_work_submit_to_queue(struct k_work_q *work_q,