>-----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); [EMAIL PROTECTED]; 
>linux-omap@vger.kernel.org
>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

Reply via email to