diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-30 09:42:58 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 12:42:40 -0700 |
commit | 4a0b4262d395ec2c46809e1584b2109f3a3d872e (patch) | |
tree | 3514f309c3b267a8c844d05324dc1b41058ad3c2 /board/snow/ec.tasklist | |
parent | c795ea69ff4930d90e3d0cbdc9a10332e34be2bb (diff) | |
download | chrome-ec-4a0b4262d395ec2c46809e1584b2109f3a3d872e.tar.gz |
Add tick task
Adds a new HOOK_TICK event which is called every 250ms (LM4) or 500ms
(STM32). This will be used to consolidate a number of tasks which do
small amounts of work infrequently, and previously needed their own
task functions.
This CL adds the tick task; subsequent CLs will consolidate watchdog
and other tasks into tick hooks.
BUG=chrome-os-partner:15714
BRANCH=none
TEST=taskinfo shows TICK task as lowest priority
Change-Id: I9068ee99d56a5bf5c12afd86ad51998c013f4954
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36908
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/snow/ec.tasklist')
-rw-r--r-- | board/snow/ec.tasklist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/snow/ec.tasklist b/board/snow/ec.tasklist index 7c99047a1f..811fa9238a 100644 --- a/board/snow/ec.tasklist +++ b/board/snow/ec.tasklist @@ -15,6 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TASK_LIST \ + TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \ TASK(WATCHDOG, watchdog_task, NULL, 256) \ TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \ TASK(POWERLED, power_led_task, NULL, 256) \ |