git: c214c2c00494 - main - uart: Remove CTLFLAG_NEEDGIANT from sysctl.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Dec 2021 02:30:45 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=c214c2c0049444f5ba22bc9f93546153f4a2f1d8 commit c214c2c0049444f5ba22bc9f93546153f4a2f1d8 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-26 02:30:02 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-26 02:30:02 +0000 uart: Remove CTLFLAG_NEEDGIANT from sysctl. MFC after: 2 weeks --- sys/dev/uart/uart_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 89201f3d9463..338c091d8c3d 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -209,7 +209,7 @@ uart_pps_init(struct uart_softc *sc) #endif TUNABLE_INT_FETCH("hw.uart.pps_mode", &sc->sc_pps_mode); SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "pps_mode", - CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT, sc, 0, + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, sc, 0, uart_pps_mode_sysctl, "I", "pulse mode: 0/1/2=disabled/CTS/DCD; " "add 0x10 to invert, 0x20 for narrow pulse");