Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192239
b: refs/heads/master
c: 64ce4c2
h: refs/heads/master
i:
  192237: 228fec2
  192235: ebd584e
  192231: b06fd94
  192223: ed75409
v: v3
  • Loading branch information
John Stultz authored and Thomas Gleixner committed Mar 12, 2010
1 parent a318083 commit aab1c53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c28739375bf0d6e239b4fa939ec8372aa2c707d2
refs/heads/master: 64ce4c2f5252f25798117fa80a027993163d6d84
11 changes: 5 additions & 6 deletions trunk/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv,
*/
static inline void warp_clock(void)
{
write_seqlock_irq(&xtime_lock);
wall_to_monotonic.tv_sec -= sys_tz.tz_minuteswest * 60;
xtime.tv_sec += sys_tz.tz_minuteswest * 60;
update_xtime_cache(0);
write_sequnlock_irq(&xtime_lock);
clock_was_set();
struct timespec delta, adjust;
delta.tv_sec = sys_tz.tz_minuteswest * 60;
delta.tv_nsec = 0;
adjust = timespec_add_safe(current_kernel_time(), delta);
do_settimeofday(&adjust);
}

/*
Expand Down

0 comments on commit aab1c53

Please sign in to comment.