[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Telios: resume rtc
suspend-resume で Telios の時刻が大きくずれるのですが、こういうパッチ
でどうでしょう?
-- 小沼雅樹
----
RCS file: /cvs/cvsroot/src/sys/arch/hpcmips/tx/tx39clock.c,v
retrieving revision 1.13
diff -u -r1.13 tx39clock.c
--- tx/tx39clock.c 2002/10/02 05:26:50 1.13
+++ tx/tx39clock.c 2003/01/19 14:18:31
@@ -284,6 +284,8 @@
(int)sec));
sc->sc_enabled = 1;
+ clock_secs_to_ymdhms(base, &dt);
+ sc->sc_epoch = dt;
base += sec;
} else {
dt.dt_year = sc->sc_year;
@@ -316,6 +318,8 @@
if (sc->sc_enabled) {
sc->sc_epoch = *dt;
+ __tx39timer_rtcreset(sc->sc_tc);
+ tx39clock_alarm_refill(sc->sc_tc);
}
}