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
This commit is contained in:
Randall Spangler
2012-05-15 14:29:38 -07:00
parent 50e0966af8
commit f738021657
2 changed files with 7 additions and 7 deletions

View File

@@ -16,14 +16,14 @@
#define CONFIG_TASK_LIST \
TASK(WATCHDOG, watchdog_task, NULL) \
TASK(LIGHTBAR, lightbar_task, NULL) \
TASK(POWERSTATE, charge_state_machine_task, NULL) \
TASK(TEMPSENSOR, temp_sensor_task, NULL) \
TASK(THERMAL, thermal_task, NULL) \
TASK(PWM, pwm_task, NULL) \
TASK(KEYSCAN, keyboard_scan_task, NULL) \
TASK(TYPEMATIC, keyboard_typematic_task, NULL) \
TASK(POWERBTN, power_button_task, NULL) \
TASK(X86POWER, x86_power_task, NULL) \
TASK(CONSOLE, console_task, NULL) \
TASK(HOSTCMD, host_command_task, NULL) \
TASK(I8042CMD, i8042_command_task, NULL) \
TASK(POWERSTATE, charge_state_machine_task, NULL)
TASK(HOSTCMD, host_command_task, NULL) \
TASK(CONSOLE, console_task, NULL) \
TASK(POWERBTN, power_button_task, NULL) \
TASK(KEYSCAN, keyboard_scan_task, NULL)

View File

@@ -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 */
}
}