summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-pcf8523.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-09-21 12:11:49 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-01-12 12:12:59 +0000
commit346def82f72d61787918e02cccfb1678d5533e2b (patch)
tree6a2c9545ed273c3a6ff2daf5f8742d11b97f1bd0 /drivers/rtc/rtc-pcf8523.c
parent60da2cdd80754128d61ce6a3db7f9f65fc49046d (diff)
rtc: add procfs sysctl to control RTC updates
Add a procfs sysctl to allow the RTC updates by the NTP code to be disabled. This is necessary if one wishes to adjust the RTC trimming. When performing such an adjustment, one would want to compare the RTC against a good reference. One way to do that is to synchronise the systems own time using NTP, but doing so causes the kernel to set the RTC every 11 minutes. This repeated setting prevents measuring the long-term drift of the RTC, and so prevents any attempt to trim the RTC for better accuracy. This sysctl defaults to enabled, so existing behaviour is preserved. When one wishes to adjust the long-term drift, the RTC update can be disabled via: echo 0 > /proc/sys/kernel/ntp_rtc_sync, the drift measured, and the update subsequently re-enabled. The next update will be triggered by the next successful adjtimex call. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/rtc/rtc-pcf8523.c')
0 files changed, 0 insertions, 0 deletions