summaryrefslogtreecommitdiff
path: root/include/throttle_ap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/throttle_ap.h')
-rw-r--r--include/throttle_ap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/throttle_ap.h b/include/throttle_ap.h
index e66a5c6bec..54a4b9fc40 100644
--- a/include/throttle_ap.h
+++ b/include/throttle_ap.h
@@ -33,7 +33,6 @@ enum throttle_sources {
THROTTLE_SRC_POWER,
};
-
/**
* Enable/disable CPU throttling.
*
@@ -44,8 +43,16 @@ enum throttle_sources {
* @param type Type of throttling desired
* @param source Which task is requesting throttling
*/
+#ifdef HAS_TASK_CHIPSET
void throttle_ap(enum throttle_level level,
enum throttle_type type,
enum throttle_sources source);
+#else
+static inline void throttle_ap(enum throttle_level level,
+ enum throttle_type type,
+ enum throttle_sources source)
+{}
+#endif
+
#endif /* __CROS_EC_THROTTLE_AP_H */