Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366189
b: refs/heads/master
c: cef9037
h: refs/heads/master
i:
  366187: 48f1be8
v: v3
  • Loading branch information
John Stultz committed Apr 4, 2013
1 parent a6e616b commit 507d60d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 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: 87ace39b7168bd9d352c1c52b6f5d88eb1876cf8
refs/heads/master: cef90377fab488bd1f959efda178fb83250cf61d
11 changes: 0 additions & 11 deletions trunk/kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,17 +666,6 @@ int __do_adjtimex(struct timex *txc, struct timespec *ts, s32 *time_tai)
{
int result;

if (txc->modes & ADJ_SETOFFSET) {
struct timespec delta;
delta.tv_sec = txc->time.tv_sec;
delta.tv_nsec = txc->time.tv_usec;
if (!(txc->modes & ADJ_NANO))
delta.tv_nsec *= 1000;
result = timekeeping_inject_offset(&delta);
if (result)
return result;
}

raw_spin_lock_irq(&ntp_lock);

if (txc->modes & ADJ_ADJTIME) {
Expand Down
11 changes: 11 additions & 0 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,17 @@ int do_adjtimex(struct timex *txc)
if (ret)
return ret;

if (txc->modes & ADJ_SETOFFSET) {
struct timespec delta;
delta.tv_sec = txc->time.tv_sec;
delta.tv_nsec = txc->time.tv_usec;
if (!(txc->modes & ADJ_NANO))
delta.tv_nsec *= 1000;
ret = timekeeping_inject_offset(&delta);
if (ret)
return ret;
}

getnstimeofday(&ts);
orig_tai = tai = timekeeping_get_tai_offset();

Expand Down

0 comments on commit 507d60d

Please sign in to comment.