diff options
Diffstat (limited to 'kernel/time.c')
| -rw-r--r-- | kernel/time.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/time.c b/kernel/time.c index 96fd0f499631..d4335c1c884c 100644 --- a/kernel/time.c +++ b/kernel/time.c | |||
| @@ -516,14 +516,6 @@ int do_settimeofday (struct timespec *tv) | |||
| 516 | 516 | ||
| 517 | write_seqlock_irq(&xtime_lock); | 517 | write_seqlock_irq(&xtime_lock); |
| 518 | { | 518 | { |
| 519 | /* | ||
| 520 | * This is revolting. We need to set "xtime" correctly. However, the value | ||
| 521 | * in this location is the value at the most recent update of wall time. | ||
| 522 | * Discover what correction gettimeofday would have done, and then undo | ||
| 523 | * it! | ||
| 524 | */ | ||
| 525 | nsec -= time_interpolator_get_offset(); | ||
| 526 | |||
| 527 | wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec); | 519 | wtm_sec = wall_to_monotonic.tv_sec + (xtime.tv_sec - sec); |
| 528 | wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); | 520 | wtm_nsec = wall_to_monotonic.tv_nsec + (xtime.tv_nsec - nsec); |
| 529 | 521 | ||
