aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64')
-rw-r--r--arch/riscv64/kernel/timer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/timer.c b/arch/riscv64/kernel/timer.c
index c7752f8..e9e509d 100644
--- a/arch/riscv64/kernel/timer.c
+++ b/arch/riscv64/kernel/timer.c
@@ -24,6 +24,11 @@ void set_timer(ticks_t ticks)
sbi_set_timer(ticks);
}
+void clear_timer()
+{
+ sbi_set_timer(-1);
+}
+
/**
* Get current ticks.
*