Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2022 01:27:39 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7518562484e8 - stable/13 - hwpmc: Remove CTLFLAG_NEEDGIANT from sysctl.
Message-ID:  <202201090127.2091RdAV001721@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mav:

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

commit 7518562484e817ebdcba27f440485695707bfa55
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2021-12-26 02:40:14 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2022-01-09 01:23:58 +0000

    hwpmc: Remove CTLFLAG_NEEDGIANT from sysctl.
    
    MFC after:      2 weeks
    
    (cherry picked from commit 1886cef69bf270bbbe7e9a0fd2a212fc17b76204)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201090127.2091RdAV001721>