summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2018-11-20 22:29:56 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-11-21 20:58:33 +0000
commitfd780d6b77801a4088a6f08d4bde11ab72c8ac2b (patch)
tree238ff876b60f212325401fff00a47f44271c0af6
parentd89fcd1dec56ca39442d8c8946d9324ab1a6e2ba (diff)
downloadchrome-ec-fd780d6b77801a4088a6f08d4bde11ab72c8ac2b.tar.gz
chipset: Provide default chipset_in_or_transitioning_to_state
If HAS_TASK_CHIPSET is not defined, common/power.c is not compiled. So provide a default implementation which indicates the chipset is always off. BUG=b:119846880 BRANCH=scarlet TEST=emerge-scarlet chromeos-ec Change-Id: Ieb123bb27f088b3ec6b138b56db39a0d46016718 Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/1345914 Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Trybot-Ready: Philip Chen <philipchen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--include/chipset.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h
index 04cd1d84c7..3db4cf572a 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -110,6 +110,11 @@ static inline int chipset_in_state(int state_mask)
return state_mask & CHIPSET_STATE_ANY_OFF;
}
+static inline int chipset_in_or_transitioning_to_state(int state_mask)
+{
+ return state_mask & CHIPSET_STATE_ANY_OFF;
+}
+
static inline void chipset_exit_hard_off(void) { }
static inline void chipset_throttle_cpu(int throttle) { }
static inline void chipset_force_shutdown(void) { }