summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/link/ec.tasklist1
-rw-r--r--chip/lm4/lpc.c18
2 files changed, 8 insertions, 11 deletions
diff --git a/board/link/ec.tasklist b/board/link/ec.tasklist
index 3b32e22540..e74140d93d 100644
--- a/board/link/ec.tasklist
+++ b/board/link/ec.tasklist
@@ -17,7 +17,6 @@
#define CONFIG_TASK_LIST \
TASK(TICK, hook_task, NULL, TASK_STACK_SIZE) \
TASK(WATCHDOG, watchdog_task, NULL, WATCHDOG_TASK_STACK_SIZE) \
- TASK(LPC, lpc_task, NULL, TASK_STACK_SIZE) \
TASK(VBOOTHASH, vboot_hash_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \
TASK(CHARGER, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
diff --git a/chip/lm4/lpc.c b/chip/lm4/lpc.c
index 7563fe1875..633edc8166 100644
--- a/chip/lm4/lpc.c
+++ b/chip/lm4/lpc.c
@@ -798,15 +798,13 @@ static void lpc_resume(void)
}
DECLARE_HOOK(HOOK_CHIPSET_RESUME, lpc_resume, HOOK_PRIO_DEFAULT);
-void lpc_task(void)
+static void lpc_tick(void)
{
- while (1) {
- msleep(250);
- /*
- * Make sure pending LPC interrupts have been processed.
- * This works around a LM4 bug where host writes sometimes
- * don't trigger interrupts. See crosbug.com/p/13965.
- */
- task_trigger_irq(LM4_IRQ_LPC);
- }
+ /*
+ * Make sure pending LPC interrupts have been processed.
+ * This works around a LM4 bug where host writes sometimes
+ * don't trigger interrupts. See crosbug.com/p/13965.
+ */
+ task_trigger_irq(LM4_IRQ_LPC);
}
+DECLARE_HOOK(HOOK_TICK, lpc_tick, HOOK_PRIO_DEFAULT);