mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 14:01:54 +00:00
Switch LPC to use HOOK_TICK instead of task
BUG=chrome-os-partner:15714 BRANCH=none TEST=taskinfo no longer shows LPC task Change-Id: I693cc8695d89d0207076f12d82bdc1f30d5df7b7 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36910 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
@@ -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) \
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user