Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_rtc.c
Show All 12 Lines | |||||
#include "clock_if.h" | #include "clock_if.h" | ||||
static int show_io; | static int show_io; | ||||
SYSCTL_INT(_debug, OID_AUTO, clock_show_io, CTLFLAG_RWTUN, &show_io, 0, | SYSCTL_INT(_debug, OID_AUTO, clock_show_io, CTLFLAG_RWTUN, &show_io, 0, | ||||
"Enable debug printing of RTC clock I/O; 1=reads, 2=writes, 3=both."); | "Enable debug printing of RTC clock I/O; 1=reads, 2=writes, 3=both."); | ||||
static int sysctl_clock_do_io(SYSCTL_HANDLER_ARGS); | static int sysctl_clock_do_io(SYSCTL_HANDLER_ARGS); | ||||
SYSCTL_PROC(_debug, OID_AUTO, clock_do_io, CTLTYPE_INT | CTLFLAG_RW, | SYSCTL_PROC(_debug, OID_AUTO, clock_do_io, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
0, 0, sysctl_clock_do_io, "I", | 0, 0, sysctl_clock_do_io, "I", | ||||
"Trigger one-time IO on RTC clocks; 1=read (and discard), 2=write"); | "Trigger one-time IO on RTC clocks; 1=read (and discard), 2=write"); | ||||
/* XXX: should be kern. now, it's no longer machdep. */ | /* XXX: should be kern. now, it's no longer machdep. */ | ||||
static int disable_rtc_set; | static int disable_rtc_set; | ||||
SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set, CTLFLAG_RW, &disable_rtc_set, | SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set, CTLFLAG_RW, &disable_rtc_set, | ||||
0, "Disallow adjusting time-of-day clock"); | 0, "Disallow adjusting time-of-day clock"); | ||||
Show All 12 Lines |