diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-05-15 13:47:18 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-05-17 09:30:38 -0700 |
commit | 5907675a477a2fd8af974d0cb1619cae57a83290 (patch) | |
tree | ebe472aa4b55a572ac8914db3b85be2d0ed1b66a /common/hooks.c | |
parent | 134f80ee0614edb146068f66d6d53eb394cc8c32 (diff) | |
download | chrome-ec-5907675a477a2fd8af974d0cb1619cae57a83290.tar.gz |
Add AC state change hook
And start wiring to x86_power so it can detect AC state changes
(needed to enable/disable turbo).
*YES*, this compiles for BDS/Daisy now...
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:9069
TEST=plug/unplug AC power and look for "x86 AC on" / "x86 AC off" in debug log
Change-Id: I8399fab9637d6635a1c615f07448fd45b86bc25f
Diffstat (limited to 'common/hooks.c')
-rw-r--r-- | common/hooks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hooks.c b/common/hooks.c index f83c2e88b2..2ef5310970 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -24,6 +24,7 @@ static const struct hook_ptrs hook_list[] = { {__hooks_chipset_resume, __hooks_chipset_resume_end}, {__hooks_chipset_suspend, __hooks_chipset_suspend_end}, {__hooks_chipset_shutdown, __hooks_chipset_shutdown_end}, + {__hooks_ac_change, __hooks_ac_change_end}, }; |