From 703d134977e9bf648a8c15512ff7fc89646a86f1 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Mon, 14 Nov 2016 18:37:18 -0800 Subject: mec1322: Place `idlestats` behind config option. The `idlestats` command was not behind the CONFIG_CMD_IDLE_STATS option; this commit fixes that. BUG=None BRANCH=glados TEST=build a board that uses mec1322. Undef CONFIG_CMD_IDLE_STATS; verify that the command isn't present in the build. Change-Id: Id17c8377f812ee2a63dc4507766c1c557704dcb1 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/411518 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Aseda Aboagye --- chip/mec1322/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chip/mec1322/clock.c b/chip/mec1322/clock.c index 1cb0bc4aaf..c305b16ffc 100644 --- a/chip/mec1322/clock.c +++ b/chip/mec1322/clock.c @@ -414,9 +414,8 @@ void __idle(void) interrupt_enable(); } /* while(1) */ } -#endif /*CONFIG_LOW_POWER_IDLE*/ -#ifdef CONFIG_LOW_POWER_IDLE +#ifdef CONFIG_CMD_IDLE_STATS /** * Print low power idle statistics */ @@ -435,6 +434,7 @@ static int command_idle_stats(int argc, char **argv) DECLARE_CONSOLE_COMMAND(idlestats, command_idle_stats, "", "Print last idle stats"); +#endif /* defined(CONFIG_CMD_IDLE_STATS) */ /** * Configure deep sleep clock settings. -- cgit v1.2.1