diff options
author | lstewart <lstewart@FreeBSD.org> | 2011-12-01 07:19:13 +0000 |
---|---|---|
committer | lstewart <lstewart@FreeBSD.org> | 2011-12-01 07:19:13 +0000 |
commit | 15250e8f2c3da8645babd9726765bf07fa49200d (patch) | |
tree | a6532dee0bb733572be90e6163a22185c33d5a35 /sys/sys/timeffc.h | |
parent | 4ebfc54b9dd86164675ad13a5da7e143b84c669b (diff) | |
download | FreeBSD-src-15250e8f2c3da8645babd9726765bf07fa49200d.zip FreeBSD-src-15250e8f2c3da8645babd9726765bf07fa49200d.tar.gz |
Revise the sysctl handling code and restructure the hierarchy of sysctls
introduced when feed-forward clock support is enabled in the kernel:
- Rename the "choice" variable to "available".
- Streamline the implementation of the "active" variable's sysctl handler
function.
- Create a kern.sysclock sysctl node for general sysclock related configuration
options. Place the "available" and "active" variables under this node.
- Create a kern.sysclock.ffclock sysctl node for feed-forward clock specific
configuration options. Place the "version" and "ffcounter_bypass" variables
under this node.
- Tweak some of the description strings.
Discussed with: Julien Ridoux (jridoux at unimelb edu au)
Diffstat (limited to 'sys/sys/timeffc.h')
-rw-r--r-- | sys/sys/timeffc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/timeffc.h b/sys/sys/timeffc.h index bc08e27..6a5bcc0 100644 --- a/sys/sys/timeffc.h +++ b/sys/sys/timeffc.h @@ -55,6 +55,12 @@ struct ffclock_estimate { #if __BSD_VISIBLE #ifdef _KERNEL +/* Define the kern.sysclock sysctl tree. */ +SYSCTL_DECL(_kern_sysclock); + +/* Define the kern.sysclock.ffclock sysctl tree. */ +SYSCTL_DECL(_kern_sysclock_ffclock); + /* * Index into the sysclocks array for obtaining the ASCII name of a particular * sysclock. |