Bug 275016 - Move disable_rtc_set, wall_cmos_clock, adjkerntz and rtc_save_period sysctl variables to kern namespace
Summary: Move disable_rtc_set, wall_cmos_clock, adjkerntz and rtc_save_period sysctl v...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-10 18:49 UTC by Seth Hoffert
Modified: 2023-11-10 18:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth Hoffert 2023-11-10 18:49:06 UTC
Currently, the following four sysctl variables reside in the 'machdep' namespace for historical reasons:

machdep.disable_rtc_set
machdep.wall_cmos_clock
machdep.adjkerntz
machdep.rtc_save_period

They should be moved to the 'kern' namespace for cleanliness.


Comment found in /sys/kern/subr_clock.c:

/*
 * The adjkerntz and wall_cmos_clock sysctls are in the "machdep" sysctl
 * namespace because they were misplaced there originally.
 */


Comment found in /sys/kern/subr_rtc.c:

/* XXX: should be kern. now, it's no longer machdep.  */