summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_clock.c')
-rw-r--r--sys/kern/subr_clock.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c
index a79e331..e573463 100644
--- a/sys/kern/subr_clock.c
+++ b/sys/kern/subr_clock.c
@@ -66,6 +66,9 @@
#include <sys/sysctl.h>
#include <sys/timetc.h>
+/* XXX: for the CPU_* sysctl OID constants. */
+#include <machine/cpu.h>
+
#include "clock_if.h"
static __inline int leapyear(int year);
@@ -93,13 +96,13 @@ int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */
* These have traditionally been in machdep, but should probably be moved to
* kern.
*/
-SYSCTL_PROC(_machdep, OID_AUTO, adjkerntz, CTLTYPE_INT|CTLFLAG_RW,
+SYSCTL_PROC(_machdep, CPU_ADJKERNTZ, adjkerntz, CTLTYPE_INT|CTLFLAG_RW,
&adjkerntz, 0, sysctl_machdep_adjkerntz, "I", "");
-SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set,
+SYSCTL_INT(_machdep, CPU_DISRTCSET, disable_rtc_set,
CTLFLAG_RW, &disable_rtc_set, 0, "");
-SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock,
+SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock,
CTLFLAG_RW, &wall_cmos_clock, 0, "");
static int
OpenPOWER on IntegriCloud