diff options
author | Aseda Aboagye <aaboagye@google.com> | 2016-11-14 18:37:18 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-15 17:42:41 -0800 |
commit | 703d134977e9bf648a8c15512ff7fc89646a86f1 (patch) | |
tree | 06f5bba09beecea04a8e66b2a7ebb8dd02d84098 /chip/mec1322/clock.c | |
parent | ab6a4897b6f2ac55bdf3f8a86cf3af2a3f2b3f2a (diff) | |
download | chrome-ec-703d134977e9bf648a8c15512ff7fc89646a86f1.tar.gz |
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 <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/411518
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'chip/mec1322/clock.c')
-rw-r--r-- | chip/mec1322/clock.c | 4 |
1 files 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. |