git: 1886cef69bf2 - main - hwpmc: Remove CTLFLAG_NEEDGIANT from sysctl.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Sun, 26 Dec 2021 02:40:37 UTC
The branch main has been updated by mav:

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

commit 1886cef69bf270bbbe7e9a0fd2a212fc17b76204
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-26 02:40:14 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-26 02:40:14 +0000

    hwpmc: Remove CTLFLAG_NEEDGIANT from sysctl.
    
    MFC after:      2 weeks
---
 sys/dev/hwpmc/hwpmc_mod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
index 8d5d0183d3ad..3a5fee9ba156 100644
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -314,7 +314,7 @@ char	pmc_debugstr[PMC_DEBUG_STRSIZE];
 TUNABLE_STR(PMC_SYSCTL_NAME_PREFIX "debugflags", pmc_debugstr,
     sizeof(pmc_debugstr));
 SYSCTL_PROC(_kern_hwpmc, OID_AUTO, debugflags,
-    CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_NEEDGIANT,
+    CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE,
     0, 0, pmc_debugflags_sysctl_handler, "A",
     "debug flags");
 #endif