MIPS: Convert update_persistent_clock() to update_persistent_clock64()
[sfrench/cifs-2.6.git] / arch / mips / lasat / sysctl.c
index 6f7422400f32aeaca60fc887fcb7d8132b7d9a69..ead07c243c6a2e9db2ba39a4698043e2602a2bab 100644 (file)
@@ -73,8 +73,16 @@ int proc_dolasatrtc(struct ctl_table *table, int write,
        if (r)
                return r;
 
-       if (write)
-               rtc_mips_set_mmss(rtctmp);
+       if (write) {
+               /*
+                * Due to the RTC hardware limitation, we can not actually
+                * use the full 64-bit range here.
+                */
+               ts.tv_sec = rtctmp;
+               ts.tv_nsec = 0;
+
+               update_persistent_clock64(ts);
+       }
 
        return 0;
 }