aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/clock.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-09-21 10:15:08 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-09-21 10:15:08 +0000
commit851194715da3119a077abd60f5ca7f792cb79150 (patch)
tree7501a9f4e9050f4f9c28ef43de4284d676e131f7 /sys/sys/clock.h
parentc1538a13655a63b68312b003793ed85202e2067d (diff)
downloadsrc-851194715da3119a077abd60f5ca7f792cb79150.tar.gz
src-851194715da3119a077abd60f5ca7f792cb79150.zip
Make resettodr_lock accessible outside subr_rtc.c. Protect
CLOCK_GETTIME() with the lock. Now all time-related accesses to the CMOS for RTC should be under the lock. This is needed to allow upcoming EFI Runtime Services support to provide required execution environment for the firmware calls. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=306089
Diffstat (limited to 'sys/sys/clock.h')
-rw-r--r--sys/sys/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/clock.h b/sys/sys/clock.h
index b484bc8c2587..f1809dbb9527 100644
--- a/sys/sys/clock.h
+++ b/sys/sys/clock.h
@@ -54,6 +54,7 @@
*/
extern int tz_minuteswest;
extern int tz_dsttime;
+extern struct mtx resettodr_lock;
int utc_offset(void);