diff options
author | Ian Lepore <ian@FreeBSD.org> | 2017-08-11 19:02:11 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2017-08-11 19:02:11 +0000 |
commit | c82d887d47ed97ed79437ebc7fc241a7ce8420c2 (patch) | |
tree | 7e7bb30b118182c049108e7eaf357ec43276b886 /sys/x86 | |
parent | 74a90ba38a20711d864c673e3a2fab646ef2e0c1 (diff) | |
download | src-c82d887d47ed97ed79437ebc7fc241a7ce8420c2.tar.gz src-c82d887d47ed97ed79437ebc7fc241a7ce8420c2.zip |
Stop calling atrtc_set() from the xen timer clock_settime() method. That
removes the only reference to atrtc_set() from outside of atrtc.c, so make
it static.
The xen timer driver registers as a realtime clock with 1us resolution. In
the past that resulted in only the xen timer's clock_settime() getting
called, so it would call atrtc_set() to set the hardware clock as well. As
of r32090, the clock_settime() method of all registered realtime clocks gets
called, so the xen driver no longer needs to chain-call the lower-resolution
driver.
Thanks to royger@ for talking me through the xen stuff, and for testing.
Notes
Notes:
svn path=/head/; revision=322411
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/isa/atrtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/isa/atrtc.c b/sys/x86/isa/atrtc.c index ffc9b26ef943..80aee1378501 100644 --- a/sys/x86/isa/atrtc.c +++ b/sys/x86/isa/atrtc.c @@ -164,7 +164,7 @@ atrtc_restore(void) rtcin(RTC_INTR); } -void +static void atrtc_set(struct timespec *ts) { struct clocktime ct; |