zephyr/shim/src/tasks.c: Format with clang-format
BRANCH=none
TEST=none
@@ -18,7 +18,6 @@ BUILD_ASSERT(EC_TASK_PRIORITY(EC_TASK_PRIO_LOWEST) < K_IDLE_PRIO,
"CONFIG_NUM_PREEMPT_PRIORITIES too small, some tasks would run at "
"idle priority");
-
/* Declare all task stacks here */
#define CROS_EC_TASK(name, e, p, size, pr) \
K_THREAD_STACK_DEFINE(name##_STACK, size);
@@ -69,14 +68,12 @@ struct task_ctx_data {
};
#define CROS_EC_TASK(_name, _entry, _parameter, _size, _prio) \
- { \
- .entry = _entry, \
+ { .entry = _entry, \
.parameter = _parameter, \
.stack = _name##_STACK, \
.stack_size = _size, \
.priority = EC_TASK_PRIORITY(_prio), \
- COND_CODE_1(CONFIG_THREAD_NAME, (.name = #_name,), ()) \
- },
+ COND_CODE_1(CONFIG_THREAD_NAME, (.name = #_name, ), ()) },
#define TASK_TEST(_name, _entry, _parameter, _size) \
CROS_EC_TASK(_name, _entry, _parameter, _size)
const static struct task_ctx_cfg shimmed_tasks_cfg[TASK_ID_COUNT] = {
@@ -238,8 +235,7 @@ uint32_t task_wait_event_mask(uint32_t event_mask, int timeout_us)
return events & event_mask;
}
-static void task_entry(void *task_context_cfg,
- void *task_context_data,
+static void task_entry(void *task_context_cfg, void *task_context_data,
void *unused1)
{
ARG_UNUSED(task_context_data);
@@ -335,16 +331,10 @@ void start_ec_tasks(void)
* comment in config.h for CONFIG_TASK_LIST for existing flags
* implementation.
*/
- data->zephyr_tid = k_thread_create(
- &data->zephyr_thread,
- cfg->stack,
- cfg->stack_size,
- task_entry,
- (void *)cfg,
- data,
- NULL,
- cfg->priority,
- 0,
+ data->zephyr_tid = k_thread_create(&data->zephyr_thread,
+ cfg->stack, cfg->stack_size,
+ task_entry, (void *)cfg,
+ data, NULL, cfg->priority, 0,
K_NO_WAIT);
#ifdef CONFIG_THREAD_NAME
