]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/hwclock-rtc.c
hwclock: rely on kernel for RTC_UIE_ON on Aplha and Sparc
authorKarel Zak <kzak@redhat.com>
Fri, 3 Aug 2018 11:08:21 +0000 (13:08 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Aug 2018 11:08:21 +0000 (13:08 +0200)
commit0dcb713f2e2fe34756bab3c28e4d4ddec47afe1f
tree38e6206f16a9ec8f6f1eb81bb13e39378c906c09
parent8dd5832395c6a0b12e11b37c062e4c11be3c82ef
hwclock: rely on kernel for RTC_UIE_ON on Aplha and Sparc

It's kernel business to return EINVAL for unsupported RTC_UIE_ON. We
(userspace) should not make decisions about things that we do not
control.

If kernel is wrong then fix the kernel, don't hide the problem by
crazy ifdefs in userspace.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-rtc.c