Re: [PATCH 3/5] RTC: Rework RTC code to use timerlist for events

From: Andreas Schwab
Date: Fri Jan 21 2011 - 05:23:29 EST


John Stultz <john.stultz@xxxxxxxxxx> writes:

> On Thu, 2011-01-20 at 19:07 +0100, Andreas Schwab wrote:
>> John Stultz <john.stultz@xxxxxxxxxx> writes:
>>
>> > This patch reworks a large portion of the generic RTC code
>> > to in-effect virtualize the rtc interrupt code.
>>
>> That breaks RTC on powermac which uses rtc-generic.
>>
>> # hwclock
>> select() to /dev/rtc0 to wait for clock tick timed out
>
> Actually, can you also send strace output?

ioctl(4, RTC_UIE_ON, 0) = 0
select(5, [4], NULL, NULL, {5, 0}) = 0 (Timeout)
write(2, "select() to /dev/rtc0 to wait fo"..., 55) = 55
ioctl(4, RTC_UIE_OFF, 0) = 0

CONFIG_RTC_INTF_DEV_UIE_EMUL was never enabled, and RTC_UIE_ON returned
EINVAL before, which caused hwclock to fall back to polling.

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/