]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc: export RTC_Linux_{SwitchInterrupt,CheckInterrupt}
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 15 Jul 2024 20:23:09 +0000 (22:23 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 4 Dec 2024 13:51:25 +0000 (14:51 +0100)
commit8028984f34963898b59617c1e46a3ef02f2c78ea
tree8b48c8e2ded981b64a4c6fc619098235311c8e54
parent68301238a04616405e1aee21679d7c220f079e91
rtc: export RTC_Linux_{SwitchInterrupt,CheckInterrupt}

We have code to enable and disable the RTC's UIE interrupt, as well as
check whether it occurred and skip the first interrupt as it may be
bogus.
This is currently used as part of maintaining the correction file.

In a later commit, we will need the same functionality for using the RTC
as reference clock, so export the functions and give them descriptive
names appropriate for globally visible functions.
rtc_linux.c
rtc_linux.h