From e3c173d885a090767f845cc795adb54bb3b720b8 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Tue, 12 Aug 2008 03:13:52 -0700 Subject: [PATCH] hwclock: remove x86_64-specific bogon I was puzzled why "hwclock" wrongly reported my x86_64 sytem didn't support RTC update interrupts. Bogus #ifdef, that's why ... added by the 2.11y patch (from 2.11t). Probably this whole #ifdef should just vanish ... if the kernel rejects UIE_ON, the program ought to just cope with it. Signed-off-by: David Brownell --- hwclock/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwclock/rtc.c b/hwclock/rtc.c index 46a5b525..fefca858 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -225,7 +225,7 @@ int ret; } else { int rc; /* Return code from ioctl */ /* Turn on update interrupts (one per second) */ -#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__) +#if defined(__alpha__) || defined(__sparc__) /* Not all alpha kernels reject RTC_UIE_ON, but probably they should. */ rc = -1; errno = EINVAL; -- 2.39.5