[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: hwclock: RTC_UIE_ON on __x86_64__
From: Karel Zak <kzak () redhat ! com>
Date: 2008-08-08 22:52:49
Message-ID: 20080808225249.GC8700 () nb ! net ! home
[Download RAW message or body]
util-linux-ng hwclock/rtc.c:
#if defined(__alpha__) || defined(__sparc__) || defined(__x86_64__)
/* Not all alpha kernels reject RTC_UIE_ON, but probably they should. */
rc = -1;
errno = EINVAL;
#else
rc = ioctl(rtc_fd, RTC_UIE_ON, 0);
#endif
Looks like a legacy. I think RTC framework can emulate RTC_UIE_*. At
least on my x86_64 (rtc_cmos) with recent kernel it works. Is there
any exclusion of an architecture/driver?
Unfortunately, hwclock(8) uses a busy wait when RTC_UIE_ON is not
available...
Karel
--
Karel Zak <kzak@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic