Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135757
b: refs/heads/master
c: 069569e
h: refs/heads/master
i:
  135755: bb33d7b
v: v3
  • Loading branch information
Ingo Molnar committed Feb 25, 2009
1 parent 2271f71 commit e1b6e74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 2b9d1496e7835a603c340e8f0dd81f4b74d5f248
refs/heads/master: 069569e025706f27f939785f86a94d5d8ce55dce
7 changes: 5 additions & 2 deletions trunk/kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ static long time_reftime;

long time_adjust;

static long ntp_tick_adj;
/* constant (boot-param configurable) NTP tick adjustment (upscaled) */
static s64 ntp_tick_adj;

/*
* NTP methods:
Expand All @@ -89,7 +90,7 @@ static void ntp_update_frequency(void)
second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ)
<< NTP_SCALE_SHIFT;

second_length += (s64)ntp_tick_adj << NTP_SCALE_SHIFT;
second_length += ntp_tick_adj;
second_length += time_freq;

tick_nsec = div_u64(second_length, HZ) >> NTP_SCALE_SHIFT;
Expand Down Expand Up @@ -540,6 +541,8 @@ int do_adjtimex(struct timex *txc)
static int __init ntp_tick_adj_setup(char *str)
{
ntp_tick_adj = simple_strtol(str, NULL, 0);
ntp_tick_adj <<= NTP_SCALE_SHIFT;

return 1;
}

Expand Down

0 comments on commit e1b6e74

Please sign in to comment.