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:
parent
bec74121f6
commit
8acf899a0d
2 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue