|
@@ -122,7 +122,7 @@ again:
|
|
xtime.tv_sec > last_rtc_update + 660 &&
|
|
xtime.tv_sec > last_rtc_update + 660 &&
|
|
(xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 &&
|
|
(xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 &&
|
|
(xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) {
|
|
(xtime.tv_nsec / 1000) <= 500000 + ((unsigned) TICK_SIZE) / 2) {
|
|
- if (rtc_set_time(xtime.tv_sec) == 0) {
|
|
|
|
|
|
+ if (rtc_mips_set_time(xtime.tv_sec) == 0) {
|
|
last_rtc_update = xtime.tv_sec;
|
|
last_rtc_update = xtime.tv_sec;
|
|
} else {
|
|
} else {
|
|
last_rtc_update = xtime.tv_sec - 600;
|
|
last_rtc_update = xtime.tv_sec - 600;
|