]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: remove automatic ISA fallback
authorJ William Piggott <elseifthen@gmx.com>
Wed, 14 Jan 2015 01:29:21 +0000 (20:29 -0500)
committerJ William Piggott <elseifthen@gmx.com>
Wed, 14 Jan 2015 01:29:21 +0000 (20:29 -0500)
The old behavior when hwclock was unable to access
the rtc device was to fallback to direct ISA I/O.

This was sometimes allowing two processes to access
the Hardware Clock at the same time and hanging the
system. This is the reason the rtc device driver
only allows one process to open it.

Now hwclock defaults to using the rtc device and only
uses direct ISA when that option is given.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c

index ca61a917ddae38c1e0b6e4f6bad0d2e0652f9065..9000c95b9c0cb85a01320368be3d60631cc7da2a 100644 (file)
@@ -1243,13 +1243,6 @@ static void determine_clock_access_method(const bool user_requests_ISA)
                ur = probe_for_rtc_clock();
 #endif
 
-#if defined(__alpha__)
-       /* CMOS is also available for x86_64 and i386, but we don't check it
-        * automatically,* --directisa has to be excplicitly specified */
-       if (!ur && !user_requests_ISA)
-               ur = probe_for_cmos_clock();
-#endif
-
        if (debug) {
                if (ur)
                        puts(_(ur->interface_name));