unified: Eliminate thread config structure used by work queues

Reworks k_work_q_start() so that it accepts its 3 configuration
settings directly, rather than forcing the caller to pass in a
configuration data structure.

Change-Id: Ic0bd1b94f1a1c8e0f8a84b3bd3677d59d0708734
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2016-10-07 13:59:23 -05:00 committed by Anas Nashif
commit 904cf97263
4 changed files with 19 additions and 27 deletions

View file

@ -102,12 +102,6 @@ enum execution_context_types {
K_PREEMPT_THREAD,
};
struct k_thread_config {
char *stack;
unsigned stack_size;
unsigned prio;
};
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);
extern k_tid_t k_thread_spawn(char *stack, unsigned stack_size,
void (*entry)(void *, void *, void*),
@ -661,8 +655,8 @@ static inline int k_work_pending(struct k_work *work)
* @brief Start a new workqueue. This routine can be called from either
* fiber or task context.
*/
extern void k_work_q_start(struct k_work_q *work_q,
const struct k_thread_config *config);
extern void k_work_q_start(struct k_work_q *work_q, char *stack,
unsigned stack_size, unsigned prio);
#if defined(CONFIG_SYS_CLOCK_EXISTS)