diff options
author | Vic Yang <victoryang@chromium.org> | 2014-09-23 15:38:24 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-24 06:25:33 +0000 |
commit | cf62055270fa35fb613db3a850c81e6a9bc01af0 (patch) | |
tree | 4e4b762f45f4bc76f423314a1f82341da4845685 /core/cortex-m0/task.c | |
parent | 4afee85638257d71600e8ad8c74f0a2d7b35ad0c (diff) | |
download | chrome-ec-cf62055270fa35fb613db3a850c81e6a9bc01af0.tar.gz |
Add options to disable rarely used console commands
'powerindebug' is only used when there is a problem with power
sequencing. 'taskready' is rarely used and the same info can be
retrieved by 'taskinfo'.
Put both behind config flags and disable 'taskready' by default. Also
disable 'powerindebug' for Ryu.
BUG=chrome-os-partner:32203
TEST=Build Ryu and check flash space used.
BRANCH=None
Change-Id: I753a1f5411d6e840a80aba03afc94f9640d381a8
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/219490
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core/cortex-m0/task.c')
-rw-r--r-- | core/cortex-m0/task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index 830d6a520c..59a8e4d7d6 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -538,6 +538,7 @@ DECLARE_CONSOLE_COMMAND(taskinfo, command_task_info, "Print task info", NULL); +#ifdef CONFIG_CMD_TASKREADY static int command_task_ready(int argc, char **argv) { if (argc < 2) { @@ -554,6 +555,7 @@ DECLARE_CONSOLE_COMMAND(taskready, command_task_ready, "[setmask]", "Print/set ready tasks", NULL); +#endif #ifdef CONFIG_CMD_STACKOVERFLOW static void stack_overflow_recurse(int n) |