login
Header Space

 
 

Re: [RFC][PATCH 1/4] RTC: Class device support for persistent clock

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Maciej W. Rozycki <macro@...>
Cc: Alessandro Zummo <a.zummo@...>, Jean Delvare <khali@...>, Ralf Baechle <ralf@...>, Thomas Gleixner <tglx@...>, Andrew Morton <akpm@...>, <rtc-linux@...>, <i2c@...>, <linux-mips@...>, <linux-kernel@...>
Date: Wednesday, May 7, 2008 - 5:18 pm

On Tue, May 6, 2008 at 5:40 PM, Maciej W. Rozycki <macro@linux-mips.org> wrote:

Hrmm. So how is this going to work with suspend and resume?

Ideally, on resume we want to update the clock before interrupts are
reenabled so we don't get stale time values post-resume.  For systems
that sleep on reading the persistent clock, I'm open to having them
fix it up as best they can later (partly why the code can handle
read_persistent_clock() not returning anything), but unless I'm
misreading this, it seems you're proposing to make systems that do
have a safe persistent clock have to have the window where code may
see the pre-suspend time after resume.

Am I missing something here?

thanks
-john

Maciej: Sorry for the dup, I forgot to reply to all on my first mail.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH 1/4] RTC: Class device support for persisten..., john stultz, (Wed May 7, 5:18 pm)
Re: [RFC][PATCH 1/4] RTC: Class device support for persisten..., Maciej W. Rozycki, (Sun May 18, 12:39 am)
speck-geostationary