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 /core | |
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 'core')
-rw-r--r-- | core/cortex-m/ec.lds.S | 4 | ||||
-rw-r--r-- | core/cortex-m/link_defs.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index be0e20fdd8..7097ced5a5 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -96,6 +96,10 @@ SECTIONS *(.rodata.HOOK_LID_CHANGE) __hooks_lid_change_end = .; + __hooks_tick = .; + *(.rodata.HOOK_TICK) + __hooks_tick_end = .; + . = ALIGN(4); *(.rodata*) diff --git a/core/cortex-m/link_defs.h b/core/cortex-m/link_defs.h index 86c6b0a311..44332c74bc 100644 --- a/core/cortex-m/link_defs.h +++ b/core/cortex-m/link_defs.h @@ -38,6 +38,8 @@ extern const struct hook_data __hooks_ac_change[]; extern const struct hook_data __hooks_ac_change_end[]; extern const struct hook_data __hooks_lid_change[]; extern const struct hook_data __hooks_lid_change_end[]; +extern const struct hook_data __hooks_tick[]; +extern const struct hook_data __hooks_tick_end[]; /* Host commands */ extern const struct host_command __hcmds[]; |