Remove more straggling CPU_ macro references
This commit is contained in:
parent
3a8f1e72b3
commit
99ab8292c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158450
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user