]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc: factor out RTC_Linux_ReadTimeNow
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 22 Jul 2024 15:46:44 +0000 (17:46 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 4 Dec 2024 14:24:48 +0000 (15:24 +0100)
commita1191f8392b70752e6f600361d6467f58b4ecf8d
tree5063b1e763d6dc739b8a10a35039b8a8471235b6
parent924199ef69fce4c343e2cce88fc04e68ba83f019
rtc: factor out RTC_Linux_ReadTimeNow

We have code to read RTC time and handle the error associated with
having no UIE interrupt, which we currently use 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 function and give it a descriptive
name appropriate for a globally visible function.
rtc_linux.c
rtc_linux.h