summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-07-29 17:27:05 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-10 18:39:24 +0000
commitb61bfc8febcf9e897bb5a76f2fbe59b791f9d514 (patch)
treeaa993f8f063bc19bede0ad32c630499bd506f917 /include
parent0739074fbf735cffefdac7ff6d086084449f6493 (diff)
downloadchrome-ec-b61bfc8febcf9e897bb5a76f2fbe59b791f9d514.tar.gz
Add more build conditions on x86-only code.
ACPI and thermal throttling are used only by x86 platforms. Modify the conditional build to avoid building them where they are not used. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=make buildall check the flash size on Ryu and see we are saving about 200 bytes with this changes. Change-Id: Ie5e1603fb3bea95eaa5cb1e6cb19f4ddb0e235e8 Reviewed-on: https://chromium-review.googlesource.com/210056 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/throttle_ap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/throttle_ap.h b/include/throttle_ap.h
index 54a4b9fc40..8d2af51db9 100644
--- a/include/throttle_ap.h
+++ b/include/throttle_ap.h
@@ -43,7 +43,7 @@ enum throttle_sources {
* @param type Type of throttling desired
* @param source Which task is requesting throttling
*/
-#ifdef HAS_TASK_CHIPSET
+#ifdef CONFIG_TEMP_SENSOR
void throttle_ap(enum throttle_level level,
enum throttle_type type,
enum throttle_sources source);