git: 25ece2331fe8 - stable/13 - riscv timer: implement riscv_timer_et_stop()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Jul 2022 16:40:09 UTC
The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=25ece2331fe8aa606c8d73623057b58d1eee3a1f commit 25ece2331fe8aa606c8d73623057b58d1eee3a1f Author: Mitchell Horne <mhorne@FreeBSD.org> AuthorDate: 2022-06-21 16:23:40 +0000 Commit: Mitchell Horne <mhorne@FreeBSD.org> CommitDate: 2022-07-04 16:37:05 +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 (cherry picked from commit 3a4256dd86f01a35b076892841042bac0054fd64) --- 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 d1b61db78a86..34bc7590e397 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -142,7 +142,8 @@ static int riscv_timer_stop(struct eventtimer *et) { - /* TODO */ + /* Disable timer interrupts. */ + csr_clear(sie, SIE_STIE); return (0); }