diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-03-18 15:43:05 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-19 10:31:12 -0700 |
commit | 9ddb7e07086bf7724ac234c1e7844f435abc811c (patch) | |
tree | 47275fcc6a8d55c2d5af29bb593c0fb5775fb8c5 /common/hooks.c | |
parent | 6c285c09941dfb1924b037476e823ecff20c897d (diff) | |
download | chrome-ec-9ddb7e07086bf7724ac234c1e7844f435abc811c.tar.gz |
Rename tasks to HOOKS and CHIPSET
Rename tasks
TICK -> HOOKS
The hooks task handles more than just the TICK hook now.
X86POWER -> CHIPSET
GAIAPOWER -> CHIPSET
Kinda kludgy that the name of the task controls which chipset source gets
included. Change this to a CONFIG_CHIPSET_{X86,GAIA} #define to make it
easier to support future chipsets. Also, rename the task function to
chipset_task() so ec.tasklist is chipset-agnostic.
No code changes, just renaming constants and functions.
BUG=none
BRANCH=none
TEST=build bds,link,daisy,snow,spring
Change-Id: I163ce1cd27b2d8d030d42bb1f7eb46b880c244fb
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45805
Diffstat (limited to 'common/hooks.c')
-rw-r--r-- | common/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hooks.c b/common/hooks.c index 4704992de0..97b2da107c 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -75,7 +75,7 @@ void hook_notify(enum hook_type type) if (type == HOOK_AC_CHANGE) { /* Store deferred hook and wake task */ atomic_or(&pending_hooks, 1 << type); - task_wake(TASK_ID_TICK); + task_wake(TASK_ID_HOOKS); } else { /* Notify now */ notify(type); |