Merge tag 'arc-v3.10-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / kernel / time.c
index f8342a41efa60de3badbcbd2f48fa1950d0d7f99..d3617dbd3dca6b3844e0814e889026f01af0ddd4 100644 (file)
@@ -138,13 +138,14 @@ int persistent_clock_is_local;
  */
 static inline void warp_clock(void)
 {
-       struct timespec adjust;
+       if (sys_tz.tz_minuteswest != 0) {
+               struct timespec adjust;
 
-       adjust = current_kernel_time();
-       if (sys_tz.tz_minuteswest != 0)
                persistent_clock_is_local = 1;
-       adjust.tv_sec += sys_tz.tz_minuteswest * 60;
-       do_settimeofday(&adjust);
+               adjust.tv_sec = sys_tz.tz_minuteswest * 60;
+               adjust.tv_nsec = 0;
+               timekeeping_inject_offset(&adjust);
+       }
 }
 
 /*
This page took 0.024522 seconds and 5 git commands to generate.