Thread (13 messages) 13 messages, 7 authors, 2000-08-08

Re: rtc again...

flat view

From: Takashi Oe <hidden>
Date: 2000-08-03 23:33:18

On Thu, 3 Aug 2000, Gabriel Paubert wrote:
quoted hunk ↗ jump to hunk
===== arch/ppc/kernel/pmac_time.c 1.2 vs 1.5 =====
--- 1.2/arch/ppc/kernel/pmac_time.c	Mon Jun 19 19:59:36 2000
+++ 1.5/arch/ppc/kernel/pmac_time.c	Mon Jul 31 11:28:27 2000
[...]
quoted hunk ↗ jump to hunk
 int pmac_set_rtc_time(unsigned long nowtime)
 {
-	return 0;
+#ifdef CONFIG_ADB
+	struct adb_request req;
+#endif
+	nowtime += RTC_OFFSET - sys_tz.tz_minuteswest * 60;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This needs to be changed to

+	nowtime += RTC_OFFSET - sys_tz.tz_minuteswest * 60 + (sys_tz.tz_dsttime? 3600: 0);


Takashi Oe


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help