summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-30 09:42:58 -0700
committerGerrit <chrome-bot@google.com>2012-10-30 12:42:40 -0700
commit4a0b4262d395ec2c46809e1584b2109f3a3d872e (patch)
tree3514f309c3b267a8c844d05324dc1b41058ad3c2 /board/bds
parentc795ea69ff4930d90e3d0cbdc9a10332e34be2bb (diff)
downloadchrome-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/bds')
-rw-r--r--board/bds/ec.tasklist1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/bds/ec.tasklist b/board/bds/ec.tasklist
index 2e5408dd5b..2b619f192b 100644
--- a/board/bds/ec.tasklist
+++ b/board/bds/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, TASK_STACK_SIZE) \
TASK(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \
TASK(CONSOLE, console_task, NULL, TASK_STACK_SIZE)