diff options
author | phk <phk@FreeBSD.org> | 2006-05-11 17:53:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-05-11 17:53:26 +0000 |
commit | d12dd358d4d7b775b4ced93dafc74c85122d59c9 (patch) | |
tree | 9fc3a696d1f2dccae0fe1e3ceec5cd138395c40a /sys | |
parent | 7f5f12015d4ba4218a84a68e6d6bde7a6fce2cfd (diff) | |
download | FreeBSD-src-d12dd358d4d7b775b4ced93dafc74c85122d59c9.zip FreeBSD-src-d12dd358d4d7b775b4ced93dafc74c85122d59c9.tar.gz |
Remove more straggling CPU_ macro references
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/ia64/clock.c | 6 | ||||
-rw-r--r-- | sys/kern/subr_clock.c | 8 | ||||
-rw-r--r-- | sys/kern/subr_rtc.c | 8 | ||||
-rw-r--r-- | sys/kern/tty_cons.c | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c index 434f239..24b7917 100644 --- a/sys/ia64/ia64/clock.c +++ b/sys/ia64/ia64/clock.c @@ -43,15 +43,15 @@ __FBSDID("$FreeBSD$"); static int sysctl_machdep_adjkerntz(SYSCTL_HANDLER_ARGS); int disable_rtc_set; /* disable resettodr() if != 0 */ -SYSCTL_INT(_machdep, CPU_DISRTCSET, disable_rtc_set, +SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set, CTLFLAG_RW, &disable_rtc_set, 0, ""); int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */ -SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock, +SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW, &wall_cmos_clock, 0, ""); int adjkerntz; /* local offset from GMT in seconds */ -SYSCTL_PROC(_machdep, CPU_ADJKERNTZ, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_machdep, OID_AUTO, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, &adjkerntz, 0, sysctl_machdep_adjkerntz, "I", ""); static int diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index bfa1e10..18be8bc 100644 --- a/sys/kern/subr_clock.c +++ b/sys/kern/subr_clock.c @@ -94,13 +94,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, CPU_ADJKERNTZ, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_machdep, OID_AUTO, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, &adjkerntz, 0, sysctl_machdep_adjkerntz, "I", ""); -SYSCTL_INT(_machdep, CPU_DISRTCSET, disable_rtc_set, +SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set, CTLFLAG_RW, &disable_rtc_set, 0, ""); -SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock, +SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW, &wall_cmos_clock, 0, ""); static int @@ -214,7 +214,7 @@ clock_ts_to_ct(struct timespec *ts, struct clocktime *ct) } void -clock_register(device_t dev, long res) +clock_register(device_t dev, long res) /* res has units of microseconds */ { if (clock_dev != NULL) { diff --git a/sys/kern/subr_rtc.c b/sys/kern/subr_rtc.c index bfa1e10..18be8bc 100644 --- a/sys/kern/subr_rtc.c +++ b/sys/kern/subr_rtc.c @@ -94,13 +94,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, CPU_ADJKERNTZ, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_machdep, OID_AUTO, adjkerntz, CTLTYPE_INT|CTLFLAG_RW, &adjkerntz, 0, sysctl_machdep_adjkerntz, "I", ""); -SYSCTL_INT(_machdep, CPU_DISRTCSET, disable_rtc_set, +SYSCTL_INT(_machdep, OID_AUTO, disable_rtc_set, CTLFLAG_RW, &disable_rtc_set, 0, ""); -SYSCTL_INT(_machdep, CPU_WALLCLOCK, wall_cmos_clock, +SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW, &wall_cmos_clock, 0, ""); static int @@ -214,7 +214,7 @@ clock_ts_to_ct(struct timespec *ts, struct clocktime *ct) } void -clock_register(device_t dev, long res) +clock_register(device_t dev, long res) /* res has units of microseconds */ { if (clock_dev != NULL) { diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index abd79ba..b9f9b75 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -99,7 +99,7 @@ static STAILQ_HEAD(, cn_device) cn_devlist = (cnd->cnd_vp->v_type == VBAD && !cn_devopen(cnd, td, 1))) static dev_t cn_udev_t; -SYSCTL_OPAQUE(_machdep, CPU_CONSDEV, consdev, CTLFLAG_RD, +SYSCTL_OPAQUE(_machdep, OID_AUTO, consdev, CTLFLAG_RD, &cn_udev_t, sizeof cn_udev_t, "T,struct cdev *", ""); int cons_avail_mask = 0; /* Bit mask. Each registered low level console |