diff options
author | Christoph Hellwig <hch@lst.de> | 2018-08-04 04:23:12 -0400 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-08-13 11:31:30 -0400 |
commit | b9490350f751e5d17a24d0ae5af1f9e7f55c7c31 (patch) | |
tree | fd0b8871c4c79a33885b709ed807fdcb29617952 | |
parent | 5b5c2a2c44d7225ab3abbcc7e1881b97ea9872dd (diff) |
RISC-V: remove timer leftovers
This code is currently unused and will be added back later in a different
place with the real interrupt and clocksource support.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r-- | arch/riscv/kernel/time.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 2463fcca719e..0df9b2cbd645 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c | |||
@@ -13,32 +13,11 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/clocksource.h> | 15 | #include <linux/clocksource.h> |
16 | #include <linux/clockchips.h> | ||
17 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
18 | |||
19 | #ifdef CONFIG_RISCV_TIMER | ||
20 | #include <linux/timer_riscv.h> | ||
21 | #endif | ||
22 | |||
23 | #include <asm/sbi.h> | 17 | #include <asm/sbi.h> |
24 | 18 | ||
25 | unsigned long riscv_timebase; | 19 | unsigned long riscv_timebase; |
26 | 20 | ||
27 | DECLARE_PER_CPU(struct clock_event_device, riscv_clock_event); | ||
28 | |||
29 | void riscv_timer_interrupt(void) | ||
30 | { | ||
31 | #ifdef CONFIG_RISCV_TIMER | ||
32 | /* | ||
33 | * FIXME: This needs to be cleaned up along with the rest of the IRQ | ||
34 | * handling cleanup. See irq.c for more details. | ||
35 | */ | ||
36 | struct clock_event_device *evdev = this_cpu_ptr(&riscv_clock_event); | ||
37 | |||
38 | evdev->event_handler(evdev); | ||
39 | #endif | ||
40 | } | ||
41 | |||
42 | void __init init_clockevent(void) | 21 | void __init init_clockevent(void) |
43 | { | 22 | { |
44 | timer_probe(); | 23 | timer_probe(); |