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 /include | |
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 'include')
-rw-r--r-- | include/hooks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h index 8124257877..2c691fb639 100644 --- a/include/hooks.h +++ b/include/hooks.h @@ -47,6 +47,7 @@ enum hook_type { HOOK_AC_CHANGE, /* AC power plugged in or removed */ HOOK_LID_CHANGE, /* Lid opened or closed. Based on debounced lid * state, not raw lid GPIO input. */ + HOOK_TICK, /* Periodic tick, every HOOK_TICK_INTERVAL */ }; struct hook_data { |