aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-09-13 14:22:27 +0000
committerBruce Evans <bde@FreeBSD.org>1999-09-13 14:22:27 +0000
commit37d3877723378b4d96a0ade97dddf7ee45c03d0c (patch)
treefc5f100f5f319b40fb931302494e1c06a1f421a2 /sys/kern/kern_tc.c
parent34d32cd34083b7fc47ee0ec22b32584d3a829b64 (diff)
downloadsrc-37d3877723378b4d96a0ade97dddf7ee45c03d0c.tar.gz
src-37d3877723378b4d96a0ade97dddf7ee45c03d0c.zip
Moved the definition of `boottime' and its sysctl to the correct file.
Notes
Notes: svn path=/head/; revision=51229
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 4d7b6a94e46c..34f4c362ceb9 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -101,6 +101,10 @@ long tk_rawcc;
time_t time_second;
+struct timeval boottime;
+SYSCTL_STRUCT(_kern, KERN_BOOTTIME, boottime, CTLFLAG_RD,
+ &boottime, timeval, "System boottime");
+
/*
* Which update policy to use.
* 0 - every tick, bad hardware may fail with "calcru negative..."