RE: getnstimeofday() and suspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

>-----Original Message-----
>From: Stoppa Igor (Nokia-D/Helsinki) 
>Sent: 15 August, 2008 13:11
>To: Hogander Jouni (Nokia-D/Tampere)
>Cc: Kristo Tero (Nokia-D/Tampere); tony@xxxxxxxxxxx; 
>linux-omap@xxxxxxxxxxxxxxx
>Subject: Re: getnstimeofday() and suspend
>
>On Fri, 2008-08-15 at 12:55 +0300, Högander Jouni wrote:
>
>> Using them both would also generate more complexity. What 
>would be the 
>> benefit in using them both?
>
>The RTC should be used during suspend since it's supposed to 
>keep track of time regardless of how long the duration of the 
>suspension is.
>
>The 32kHz alone is not a good generic solution since it 
>overflows after a couple of days.

General problem seems to be that arch/arm has not defined read_persistent_clock() function. Attached patch tries to fix this problem by using a 32k counter hack. Probably something similar should be done which checks for overflows and uses RTC if available.

-Tero

Attachment: 0001-Fixed-timekeeping-bug-during-suspend.patch
Description: 0001-Fixed-timekeeping-bug-during-suspend.patch


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux