git: 3a4256dd86f0 - main - riscv timer: implement riscv_timer_et_stop()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Jun 2022 18:16:11 UTC
The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3a4256dd86f01a35b076892841042bac0054fd64 commit 3a4256dd86f01a35b076892841042bac0054fd64 Author: Mitchell Horne <mhorne@FreeBSD.org> AuthorDate: 2022-06-21 16:23:40 +0000 Commit: Mitchell Horne <mhorne@FreeBSD.org> CommitDate: 2022-06-23 18:15:11 +0000 riscv timer: implement riscv_timer_et_stop() Simply by masking timer interrupts. MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35463 --- sys/riscv/riscv/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c index e7df76fca70b..8f01ef2a720f 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -120,7 +120,8 @@ static int riscv_timer_et_stop(struct eventtimer *et) { - /* TODO */ + /* Disable timer interrupts. */ + csr_clear(sie, SIE_STIE); return (0); }