summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-02-19 18:11:54 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-22 23:41:30 +0000
commitebbf2bfb229141fb4092923860b53c0b91b91d3f (patch)
treee020625a18f115c7d9525471050b6d4728f0de96
parent4d8e52a348b4b03549d75048e920a1b4a0aec75b (diff)
downloadchrome-ec-ebbf2bfb229141fb4092923860b53c0b91b91d3f.tar.gz
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 <whliao@nuvoton.corp-partner.google.com> Change-Id: I8030174b9824658d53f0bc3010b9da4ee0ef1f67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706665 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/shim/include/shimmed_task_id.h6
1 files 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)), ()) \