aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/otus
diff options
context:
space:
mode:
authorPawel Biernacki <kaktus@FreeBSD.org>2020-02-21 16:32:17 +0000
committerPawel Biernacki <kaktus@FreeBSD.org>2020-02-21 16:32:17 +0000
commit08f5e6bb8104e5179b27e49fe688048382c7877b (patch)
tree44c1f6f7d1ebc0e281a1778485b2064d4a367ec1 /sys/dev/otus
parent10b49b230259c0d357e19b21dfff92abc6142943 (diff)
downloadsrc-08f5e6bb8104e5179b27e49fe688048382c7877b.tar.gz
src-08f5e6bb8104e5179b27e49fe688048382c7877b.zip
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes. This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags. Mark all low hanging fruits as MPSAFE. Reviewed by: markj Approved by: kib (mentor, blanket) Differential Revision: https://reviews.freebsd.org/D23626
Notes
Notes: svn path=/head/; revision=358224
Diffstat (limited to 'sys/dev/otus')
-rw-r--r--sys/dev/otus/if_otus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/otus/if_otus.c b/sys/dev/otus/if_otus.c
index 0489b943820e..9e3903770714 100644
--- a/sys/dev/otus/if_otus.c
+++ b/sys/dev/otus/if_otus.c
@@ -75,7 +75,8 @@ __FBSDID("$FreeBSD$");
#include "if_otusreg.h"
static int otus_debug = 0;
-static SYSCTL_NODE(_hw_usb, OID_AUTO, otus, CTLFLAG_RW, 0, "USB otus");
+static SYSCTL_NODE(_hw_usb, OID_AUTO, otus, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
+ "USB otus");
SYSCTL_INT(_hw_usb_otus, OID_AUTO, debug, CTLFLAG_RWTUN, &otus_debug, 0,
"Debug level");
#define OTUS_DEBUG_XMIT 0x00000001