From 9f109204b25b8102ed484267963bb6e2749f9dd8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 13 Jan 2015 09:44:11 +0100 Subject: [PATCH] hwclock: don't check CMOS automatically on x86_64 We have enabled CMOS also for x86_64, but it should be available only if --directisa is explicitly specified. Signed-off-by: Karel Zak --- sys-utils/hwclock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index a376516ff2..88d1e3c9bb 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1243,8 +1243,12 @@ static void determine_clock_access_method(const bool user_requests_ISA) ur = probe_for_rtc_clock(); #endif +#if defined(__i386__) || defined(__alpha__) + /* CMOS is also available for x86_64, 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) -- 2.47.3