diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-05-15 14:29:38 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-05-15 15:25:09 -0700 |
commit | f738021657caed66cfd98a143732a715440b3c13 (patch) | |
tree | f5c211cdc74511380e0e8f4f6016222ae969e219 /core | |
parent | 50e0966af8912575d6e55d8b30fde2f2c0135807 (diff) | |
download | chrome-ec-f738021657caed66cfd98a143732a715440b3c13.tar.gz |
Rearrange task priorities
Charging state machine doesn't need to be able to preempt everybody.
Keyboard scanning and power button should preempt, because they need
to debounce/scan at a stable rate.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=system still boots
Change-Id: Id57c680b9fa4652bc10d19270620d63788a7b269
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index b21d2cd59c..d69b607208 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -75,9 +75,9 @@ void __idle(void) cprintf(CC_TASK, "[%T idle task started]\n"); while (1) { - /* Wait for the irq event */ + /* Wait for the next irq event. This stops the CPU clock + * (sleep / deep sleep, depending on chip config). */ asm("wfi"); - /* TODO: more power management here */ } } |