diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2013-11-13 12:30:00 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-11-13 22:24:34 +0000 |
commit | d44932402ad99bfaeba3e3a6641e84595401df39 (patch) | |
tree | 755106526fcf20117aeb735b29460e953b475e17 | |
parent | bec6b5c93ca1ab7746deb83d0d0a95a7d1bedb6b (diff) | |
download | chrome-ec-d44932402ad99bfaeba3e3a6641e84595401df39.tar.gz |
Remove the printf prompt in idle task.
A cprintf could increase 96+ bytes of stack usage and may overflow
the stack of idle task, which is 256 bytes on stm32.
BUG=chrome-os-partner:23982
BRANCH=nyan
TEST=verified on nyan
Change-Id: If96a1c51010116a2b4f3d67481ec0acc7bf78dd9
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/176619
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | core/cortex-m/task.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index 687572eabe..5ef72e64b0 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -64,13 +64,6 @@ extern int __task_start(int *task_stack_ready); /* Idle task. Executed when no tasks are ready to be scheduled. */ void __idle(void) { - /* - * Print when the idle task starts. This is the lowest priority task, - * so this only starts once all other tasks have gotten a chance to do - * their task inits and have gone to sleep. - */ - cprintf(CC_TASK, "[%T idle task started]\n"); - while (1) { /* * Wait for the next irq event. This stops the CPU clock |