summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-06-29 20:34:19 +0000
committerkettenis <kettenis@openbsd.org>2020-06-29 20:34:19 +0000
commit812e8c638d55a6df018fb98fd57a1dbef4251d30 (patch)
tree543993aa613655ce7f3dc765d2065458198d4b01 /sys
parentSupport the "powerpc64" architecture name. (diff)
downloadwireguard-openbsd-812e8c638d55a6df018fb98fd57a1dbef4251d30.tar.xz
wireguard-openbsd-812e8c638d55a6df018fb98fd57a1dbef4251d30.zip
Attach event counter.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc64/dev/xive.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/dev/xive.c b/sys/arch/powerpc64/dev/xive.c
index 9127299ea40..b789f63d70c 100644
--- a/sys/arch/powerpc64/dev/xive.c
+++ b/sys/arch/powerpc64/dev/xive.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xive.c,v 1.4 2020/06/26 18:03:49 kettenis Exp $ */
+/* $OpenBSD: xive.c,v 1.5 2020/06/29 20:34:19 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -284,6 +284,9 @@ xive_intr_establish(uint32_t girq, int type, int level,
ih->ih_xive_flags = flags;
sc->sc_handler[lirq] = ih;
+ if (name != NULL)
+ evcount_attach(&ih->ih_count, name, &ih->ih_girq);
+
xive_unmask(sc, ih);
return ih;