From df4f1a664700626f0b949a0cae87a3a735be46db Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Jul 2018 13:59:15 +0200 Subject: hwclock: add --delay * add command line option --delay * read RTC type from /sys/class/rtc/rtc/name * default to 0.5 (500ms) for rtc_cmos or when RTC type is impossible determine; otherwise delay is 0. Signed-off-by: Karel Zak --- sys-utils/hwclock.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys-utils/hwclock.h') diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h index 7bb6ec8bd..92fdb5f82 100644 --- a/sys-utils/hwclock.h +++ b/sys-utils/hwclock.h @@ -22,6 +22,7 @@ UL_DEBUG_DECLARE_MASK(hwclock); struct hwclock_control { char *date_opt; char *adj_file_name; + double rtc_delay; /* --delay */ #if defined(__linux__) && defined(__alpha__) char *epoch_option; #endif @@ -58,6 +59,7 @@ struct clock_ops { int (*read_hardware_clock) (const struct hwclock_control *ctl, struct tm * tm); int (*set_hardware_clock) (const struct hwclock_control *ctl, const struct tm * tm); int (*synchronize_to_clock_tick) (const struct hwclock_control *ctl); + const char *(*get_device_path) (void); }; extern struct clock_ops *probe_for_cmos_clock(void); -- cgit v1.2.3-55-g7522