lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: RTC seems broken on 2.6.38-rc1 for RTCs lacking alarms.
From
Date
On Thu, 2011-01-20 at 12:51 -0800, David Daney wrote:
> open("/dev/rtc0", O_RDONLY|O_LARGEFILE) = 3
> ioctl(3, PRESTO_GETMOUNT or RTC_UIE_ON, 0) = 0
> _newselect(4, [3], NULL, NULL, {5, 0}) = 0 (Timeout)
> write(2, "select() to /dev/rtc0 to wait for"..., 55select() to /dev/rtc0
> to wait for clock tick timed out
> ) = 55
> ioctl(3, PRESTO_SETPID or RTC_UIE_OFF, 0) = 0
> close(3) = 0
> exit_group(1) = ?
>
>
> The hwclock program is asking to put the clock in UIE mode and then
> does a select() on it. Since the alarm doesn't work, the select times out.
>
> Previously the ioctl(RTC_UIE_ON) would return EINVAL:

Ah. Good diagnosis! Let me try to get a patch for you and Andreas to
test.

thanks
-john




\
 
 \ /
  Last update: 2011-01-20 22:19    [W:0.046 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site