From fc21f40567ac7485e9e987cf5a539bd0d11c7155 Mon Sep 17 00:00:00 2001 From: gjb Date: Fri, 27 Jun 2014 22:05:21 +0000 Subject: Revert r267961, r267973: These changes prevent sysctl(8) from returning proper output, such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1) truss: can not get etype: Cannot allocate memory --- sys/mips/rt305x/uart_dev_rt305x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/mips/rt305x/uart_dev_rt305x.c') diff --git a/sys/mips/rt305x/uart_dev_rt305x.c b/sys/mips/rt305x/uart_dev_rt305x.c index d4f2319..3154cb9 100644 --- a/sys/mips/rt305x/uart_dev_rt305x.c +++ b/sys/mips/rt305x/uart_dev_rt305x.c @@ -73,9 +73,13 @@ static struct uart_ops uart_rt305x_uart_ops = { }; static int uart_output = 1; -SYSCTL_INT(_kern, OID_AUTO, uart_output, CTLFLAG_RWTUN, +TUNABLE_INT("kern.uart_output", &uart_output); +SYSCTL_INT(_kern, OID_AUTO, uart_output, CTLFLAG_RW, &uart_output, 0, "UART output enabled."); + + + static int rt305x_uart_probe(struct uart_bas *bas) { -- cgit v1.1