Re: [PATCH] powermac: proper time of day after resume
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2007-05-02 08:26:13
Attachments
- signature.asc [application/pgp-signature] 190 bytes
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2007-05-02 08:26:13
On Wed, 2007-05-02 at 14:45 +1000, Paul Mackerras wrote:
quoted
+ /* get current RTC time and convert to seconds */ + get_rtc_time(&cur_rtc_tm); + rtc_tm_to_time(&cur_rtc_tm, &cur_rtc_time);Why not just use get_boot_time() here?
Hm, I don't quite remember. I think I originally had it that way and Ben asked me to do this, but I may be wrong. Ben, can you remember anything of that? If not I'll dig through my old mail.
Or if not that, then use mktime() instead of rtc_tm_to_time(). Either way we don't need to select RTC_LIB.
Hm, I'll have to look into mktime() and see if I can change that. johannes