public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pm_trace displays the wrong time from the RTC
@ 2007-07-31 21:20 Chuck Ebbert
  2007-07-31 21:39 ` Randy Dunlap
  2007-08-01 15:47 ` Rafael J. Wysocki
  0 siblings, 2 replies; 11+ messages in thread
From: Chuck Ebbert @ 2007-07-31 21:20 UTC (permalink / raw)
  To: linux-kernel

When resuming, systems print this when booted on 07/31/07:

Date: 06/31/107

/drivers/base/power/trace.c::read_magic_time():
114	get_rtc_time(&time);
115	printk("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n",
116		time.tm_hour, time.tm_min, time.tm_sec,
117		time.tm_mon, time.tm_mday, time.tm_year);

include/asm-generic/rtc.h:
102         /*
103          * Account for differences between how the RTC uses the values
104          * and how they are defined in a struct rtc_time;
105          */
106         if (time->tm_year <= 69)
107                 time->tm_year += 100;
108 
109         time->tm_mon--;


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-10-17 20:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 21:20 pm_trace displays the wrong time from the RTC Chuck Ebbert
2007-07-31 21:39 ` Randy Dunlap
2007-07-31 21:56   ` Dave Jones
2007-07-31 22:16     ` Randy Dunlap
2007-08-01 15:47 ` Rafael J. Wysocki
2007-08-01 15:54   ` Rafael J. Wysocki
2007-08-01 18:15   ` Chuck Ebbert
2007-08-01 19:50     ` Rafael J. Wysocki
2007-08-01 21:04     ` Rafael J. Wysocki
2007-10-17 19:48       ` Dave Jones
2007-10-17 20:35         ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox