Thread (36 messages) 36 messages, 7 authors, 2007-05-28

Re: [PATCH] powermac: proper time of day after resume

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help