From ebbf2bfb229141fb4092923860b53c0b91b91d3f Mon Sep 17 00:00:00 2001 From: Wealian Liao Date: Fri, 19 Feb 2021 18:11:54 +0800 Subject: zephyr: change the hook task priority Chromium uses hook task to feed the watchdog. A watchdog will trigger if a task runs for too long. Change the priority of hook task to lowest. BUG=b:176523207 BRANCH=None. TEST=trigger watchdog by 'waitms 15000' Signed-off-by: Wealian Liao Change-Id: I8030174b9824658d53f0bc3010b9da4ee0ef1f67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706665 Reviewed-by: Simon Glass Commit-Queue: Simon Glass Tested-by: Simon Glass --- zephyr/shim/include/shimmed_task_id.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zephyr/shim/include/shimmed_task_id.h b/zephyr/shim/include/shimmed_task_id.h index 1d28c82483..a57252cd66 100644 --- a/zephyr/shim/include/shimmed_task_id.h +++ b/zephyr/shim/include/shimmed_task_id.h @@ -19,6 +19,9 @@ typedef uint8_t task_id_t; */ #ifndef CONFIG_ZTEST #define CROS_EC_TASK_LIST \ + COND_CODE_1(HAS_TASK_HOOKS, \ + (CROS_EC_TASK(HOOKS, hook_task, 0, \ + CONFIG_TASK_HOOKS_STACK_SIZE)), ()) \ COND_CODE_1(HAS_TASK_CHG_RAMP, \ (CROS_EC_TASK(CHG_RAMP, chg_ramp_task, 0, \ CONFIG_TASK_CHG_RAMP_STACK_SIZE)), ()) \ @@ -40,9 +43,6 @@ typedef uint8_t task_id_t; COND_CODE_1(HAS_TASK_MOTIONSENSE, \ (CROS_EC_TASK(MOTIONSENSE, motion_sense_task, 0, \ CONFIG_TASK_MOTIONSENSE_STACK_SIZE)), ()) \ - COND_CODE_1(HAS_TASK_HOOKS, \ - (CROS_EC_TASK(HOOKS, hook_task, 0, \ - CONFIG_TASK_HOOKS_STACK_SIZE)), ()) \ COND_CODE_1(HAS_TASK_HOSTCMD, \ (CROS_EC_TASK(HOSTCMD, host_command_task, 0, \ CONFIG_TASK_HOSTCMD_STACK_SIZE)), ()) \ -- cgit v1.2.1