summaryrefslogtreecommitdiffstats
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
authorDavid Brownell2008-08-12 12:13:52 +0200
committerKarel Zak2008-08-12 12:50:11 +0200
commit442d61c6e975e34087ad19c9106cd4b3a347cddd (patch)
tree61f3d856a20c4fcdf5f07433f48067d3ea263866 /hwclock/rtc.c
parentbuild-sys: tgets is not in ncurses but in tinfo (diff)
downloadkernel-qcow2-util-linux-442d61c6e975e34087ad19c9106cd4b3a347cddd.tar.gz
kernel-qcow2-util-linux-442d61c6e975e34087ad19c9106cd4b3a347cddd.tar.xz
kernel-qcow2-util-linux-442d61c6e975e34087ad19c9106cd4b3a347cddd.zip
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 <dbrownell@users.sourceforge.net>
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r--hwclock/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index 2acde81ef..3eb1f4eb7 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;