diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-01-16 10:12:49 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-18 04:52:49 +0000 |
commit | 4b774f07d3004e8af0c4e825e0495768d29cabf9 (patch) | |
tree | ae91a89977eeb41d1635cb90abebee39a6a33c12 /chip/stm32/clock-stm32f0.c | |
parent | 275606d104183c09ecabae3affa914e9f3b22926 (diff) | |
download | chrome-ec-4b774f07d3004e8af0c4e825e0495768d29cabf9.tar.gz |
make idlestats console command optional
To save flash space, disable "idlestats" console command on samus_pd.
This saves 384 B of flash
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:34489
TEST=make buildall and check firmware size.
=== build/samus_pd/ BASELINE ===
FLASH 57.8k / 60.0k [ text 48.0k rodat 9.7k data 0.1k ]
RAM 11.8k / 16.0k [ data 0.1k bss 11.7k ]
=== #undef CONFIG_CMD_IDLE_STATS ===
FLASH 57.4k / 60.0k [ text 47.9k rodat 9.4k data 0.1k ]
RAM 11.8k / 16.0k [ data 0.1k bss 11.7k ]
Change-Id: Iba9654a88ec195026945881bc2687a1e67747706
Reviewed-on: https://chromium-review.googlesource.com/241452
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Alec Berg <alecaberg@chromium.org>
Tested-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'chip/stm32/clock-stm32f0.c')
-rw-r--r-- | chip/stm32/clock-stm32f0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/clock-stm32f0.c b/chip/stm32/clock-stm32f0.c index e6ed36e898..5fcf8f7dfd 100644 --- a/chip/stm32/clock-stm32f0.c +++ b/chip/stm32/clock-stm32f0.c @@ -515,6 +515,7 @@ DECLARE_CONSOLE_COMMAND(rtc_alarm, command_rtc_alarm_test, #endif /* CONFIG_CMD_RTC_ALARM */ #if defined(CONFIG_LOW_POWER_IDLE) && defined(CONFIG_COMMON_RUNTIME) +#ifdef CONFIG_CMD_IDLE_STATS /** * Print low power idle statistics */ @@ -536,5 +537,6 @@ DECLARE_CONSOLE_COMMAND(idlestats, command_idle_stats, "", "Print last idle stats", NULL); +#endif /* CONFIG_CMD_IDLE_STATS */ #endif |