mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
bec6b5c93c
commit
d44932402a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user