git: fdec27ed82ea - main - wbwd: Mark sysctls with CTLFLAG_MPSAFE.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Fri, 10 Dec 2021 02:13:55 UTC
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0

commit fdec27ed82ea3f6406a7089e5e1ffd99bb4929e0
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-10 02:13:10 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-10 02:13:10 +0000

    wbwd: Mark sysctls with CTLFLAG_MPSAFE.
    
    MFC after:      2 weeks
---
 sys/dev/wbwd/wbwd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/wbwd/wbwd.c b/sys/dev/wbwd/wbwd.c
index 4195089e164b..2c8cc63dbfdc 100644
--- a/sys/dev/wbwd/wbwd.c
+++ b/sys/dev/wbwd/wbwd.c
@@ -627,15 +627,15 @@ wb_attach(device_t dev)
 	    "debug_verbose", CTLFLAG_RW, &sc->debug_verbose, 0,
             "Enables extra debugging information");
         SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "debug",
-	    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0,
+	    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE, sc, 0,
 	    sysctl_wb_debug, "A",
             "Selected register information from last change by driver");
         SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "debug_current",
-	    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT,
+	    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_SKIP | CTLFLAG_MPSAFE,
 	    sc, 0, sysctl_wb_debug_current, "A",
 	     "Selected register information (may interfere)");
 	SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "force_timeout",
-	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_NEEDGIANT, sc, 0,
+	    CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SKIP | CTLFLAG_MPSAFE, sc, 0,
 	    sysctl_wb_force_test_nmi, "I", "Enable to force watchdog to fire.");
 
 	/* Register watchdog. */