git: 7518562484e8 - stable/13 - hwpmc: Remove CTLFLAG_NEEDGIANT from sysctl.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jan 2022 01:27:39 UTC
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