summaryrefslogtreecommitdiff
path: root/core/riscv-rv32i/task.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2020-05-04 16:05:10 +0800
committerCommit Bot <commit-bot@chromium.org>2020-05-19 08:55:40 +0000
commit78deba630e2f5e9114df558af19e888331874991 (patch)
tree9e0aa0632ada97c07c98e2be878118313fd1e592 /core/riscv-rv32i/task.c
parent5d7adbc5d0138a3338c4d34afa61ba1cdde8365e (diff)
downloadchrome-ec-78deba630e2f5e9114df558af19e888331874991.tar.gz
core/riscv-rv32i: clean up header inclusions
Removes unneeded header inclusions. Especially chip-specific ones: - hwtimer_chip.h - intc.h - registers.h Other rv32i-based boards do not need to provide the headers. BRANCH=none BUG=b:151897847 TEST=1. make BOARD=asurada 2. flash_ec --board=asurada --image build/asurada/ec.bin 3. (EC console)> version Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Change-Id: I6d158568fb6b626d96215bbd263b66cd8b7ebd57 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2178700 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'core/riscv-rv32i/task.c')
-rw-r--r--core/riscv-rv32i/task.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c
index 49aa02f4db..a1c6bf47c5 100644
--- a/core/riscv-rv32i/task.c
+++ b/core/riscv-rv32i/task.c
@@ -6,14 +6,10 @@
/* Task scheduling / events module for Chrome EC operating system */
#include "atomic.h"
-#include "common.h"
#include "console.h"
#include "cpu.h"
-#include "hwtimer_chip.h"
-#include "intc.h"
#include "irq_chip.h"
#include "link_defs.h"
-#include "registers.h"
#include "task.h"
#include "timer.h"
#include "util.h"
@@ -62,6 +58,10 @@ static uint32_t irq_dist[CONFIG_IRQ_COUNT]; /* Distribution of IRQ calls */
extern int __task_start(void);
+#if defined(CHIP_FAMILY_IT83XX)
+extern void clock_sleep_mode_wakeup_isr(void);
+#endif
+
#ifndef CONFIG_LOW_POWER_IDLE
/* Idle task. Executed when no tasks are ready to be scheduled. */
void __idle(void)