summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-09-13 14:22:27 +0000
committerbde <bde@FreeBSD.org>1999-09-13 14:22:27 +0000
commit10335a428dbff74506cf67f4b88971cb12b40490 (patch)
treee3f2997fe3f7d2a7865b47168a67e377098a6ec6 /sys/kern/kern_tc.c
parent5824d128190e8673ab2dc87f7a4867d67e70a471 (diff)
downloadFreeBSD-src-10335a428dbff74506cf67f4b88971cb12b40490.zip
FreeBSD-src-10335a428dbff74506cf67f4b88971cb12b40490.tar.gz
Moved the definition of `boottime' and its sysctl to the correct file.
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 4d7b6a9..34f4c36 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..."
OpenPOWER on IntegriCloud