aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2010-12-09 22:02:48 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2010-12-09 22:02:48 +0000
commit4befa84f9cc7380cca7cf0bf45b52ef68c05fe99 (patch)
tree9288780574d33dc883e8804caabd05a9d7e818ff /sys
parentcbbcfbf8b769db75e99f7423e6d4ed6f8b7eb5ea (diff)
downloadsrc-4befa84f9cc7380cca7cf0bf45b52ef68c05fe99.tar.gz
src-4befa84f9cc7380cca7cf0bf45b52ef68c05fe99.zip
Don't tie ct_debug to bootverbose. Provide a sysctl to turn it on or off.
Switch the default to always off. Reviewed by: kib
Notes
Notes: svn path=/head/; revision=216340
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_clock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c
index 4e7bcd0347e9..de31c8ca6385 100644
--- a/sys/kern/subr_clock.c
+++ b/sys/kern/subr_clock.c
@@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <sys/timetc.h>
-#define ct_debug bootverbose
+static int ct_debug;
static int adjkerntz; /* local offset from UTC in seconds */
static int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */
@@ -60,6 +60,8 @@ int tz_dsttime;
* This have traditionally been in machdep, but should probably be moved to
* kern.
*/
+SYSCTL_INT(_machdep, OID_AUTO, ct_debug,
+ CTLFLAG_RW, &ct_debug, 0, "Print ct debug if enabled.");
SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock,
CTLFLAG_RW, &wall_cmos_clock, 0, "CMOS clock keeps wall time");