From: jca Date: Sat, 3 Dec 2022 15:03:49 +0000 (+0000) Subject: Use evcount_percpu(9) for clock interrupts X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ddad6431d49be5d3f311b62a02a1254c5784a840;p=openbsd Use evcount_percpu(9) for clock interrupts ok cheloha@ --- diff --git a/sys/arch/riscv64/riscv64/clock.c b/sys/arch/riscv64/riscv64/clock.c index 437399e612a..d681b669205 100644 --- 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 @@ -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; }