]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: try RTCGET and RTCSET only when normal rtc fails
authorSami Kerola <kerolasa@iki.fi>
Tue, 26 Jul 2016 09:52:15 +0000 (10:52 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 4 Feb 2017 23:39:38 +0000 (23:39 +0000)
commitfc35f2db798eb101d5a114304bae6131d6b50726
treeaacfdd67d8f332a45bf0379ccc0171ad5da427e5
parent4bfd519eeee1d0a8f47b33647011e36123d3ed4b
hwclock: try RTCGET and RTCSET only when normal rtc fails

The RTCGET and RTCSET are in use for sparcs with sbus, so try them as
fallback rather than always.

Reference: https://github.com/torvalds/linux/blob/master/fs/compat_ioctl.c#L967-L974
Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/hwclock-rtc.c