hwclock: RTC_UIE_ON on __x86_64__ | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
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@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]