summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-10-26 06:04:47 +0000
committerhselasky <hselasky@FreeBSD.org>2012-10-26 06:04:47 +0000
commit93b8343e6b481857fb3470096ca43692d9c0b3cb (patch)
tree76e56cbcb96afa105fdc7e27f713e4c764f56796 /sys/dev/usb/controller/uhci.c
parentb4838ce8fff5b4a05c2cfbb2121f2cda09318d2d (diff)
downloadFreeBSD-src-93b8343e6b481857fb3470096ca43692d9c0b3cb.zip
FreeBSD-src-93b8343e6b481857fb3470096ca43692d9c0b3cb.tar.gz
Add missing CTLFLAG_TUN flag to tunable sysctls in USB stack.
Rearrange the tunables and belonging sysctl declarations, so that they are next to eachother. Submitted by: n_hibma @ MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/controller/uhci.c')
-rw-r--r--sys/dev/usb/controller/uhci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c
index 39588d4..78399cc 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -86,12 +86,11 @@ static int uhcidebug = 0;
static int uhcinoloop = 0;
static SYSCTL_NODE(_hw_usb, OID_AUTO, uhci, CTLFLAG_RW, 0, "USB uhci");
-SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RW,
+SYSCTL_INT(_hw_usb_uhci, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN,
&uhcidebug, 0, "uhci debug level");
-SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RW,
- &uhcinoloop, 0, "uhci noloop");
-
TUNABLE_INT("hw.usb.uhci.debug", &uhcidebug);
+SYSCTL_INT(_hw_usb_uhci, OID_AUTO, loop, CTLFLAG_RW | CTLFLAG_TUN,
+ &uhcinoloop, 0, "uhci noloop");
TUNABLE_INT("hw.usb.uhci.loop", &uhcinoloop);
static void uhci_dumpregs(uhci_softc_t *sc);
OpenPOWER on IntegriCloud