mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user