artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb018e
)
Use evcount_percpu(9) for clock interrupts
author
jca
<jca@openbsd.org>
Sat, 3 Dec 2022 15:03:49 +0000
(15:03 +0000)
committer
jca
<jca@openbsd.org>
Sat, 3 Dec 2022 15:03:49 +0000
(15:03 +0000)
ok cheloha@
sys/arch/riscv64/riscv64/clock.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/clock.c
b/sys/arch/riscv64/riscv64/clock.c
index
437399e
..
d681b66
100644
(file)
--- a/
sys/arch/riscv64/riscv64/clock.c
+++ b/
sys/arch/riscv64/riscv64/clock.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: clock.c,v 1.
6 2022/11/19 16:02:37 cheloha Exp $
*/
+/* $OpenBSD: clock.c,v 1.
7 2022/12/03 15:03:49 jca Exp $
*/
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@
-100,6
+100,7
@@
cpu_initclocks(void)
clock_intr, NULL, NULL);
evcount_attach(&clock_count, "clock", NULL);
+ evcount_percpu(&clock_count);
cpu_startclock();
}
@@
-136,7
+137,7
@@
clock_intr(void *frame)
intr_disable();
splx(s);
-
clock_count.ec_count++
;
+
evcount_inc(&clock_count)
;
return 0;
}