git: cd9fe8d81db5 - stable/13 - uart: Remove CTLFLAG_NEEDGIANT from sysctl.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jan 2022 01:27:40 UTC
The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=cd9fe8d81db5fd6a0ef66ea3d1f961dc94df8ce5 commit cd9fe8d81db5fd6a0ef66ea3d1f961dc94df8ce5 Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-26 02:30:02 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2022-01-09 01:24:01 +0000 uart: Remove CTLFLAG_NEEDGIANT from sysctl. MFC after: 2 weeks (cherry picked from commit c214c2c0049444f5ba22bc9f93546153f4a2f1d8) --- 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");