diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-10 15:02:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-10 15:02:45 -0500 |
commit | 58a14ee9c49aa2b9742c56a0477666335368e05e (patch) | |
tree | 01dae0e9458eea6289f78bd21cea056798e5c75e /kernel/time/ntp.c | |
parent | 712a30e63c8066ed84385b12edbfb804f49cbc44 (diff) | |
parent | c289b074b66e2e59c65aba73f40b99e797e92d2f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt
* git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt:
hrtimer: don't modify restart_block->fn in restart functions
hrtimer: fix *rmtp/restarts handling in compat_sys_nanosleep()
hrtimer: fix *rmtp handling in hrtimer_nanosleep()
ntp: correct inconsistent interval/tick_length usage
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r-- | kernel/time/ntp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index e64efaf957e8..c88b5910e7ab 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c | |||
@@ -43,10 +43,6 @@ long time_freq; /* frequency offset (scaled ppm)*/ | |||
43 | static long time_reftime; /* time at last adjustment (s) */ | 43 | static long time_reftime; /* time at last adjustment (s) */ |
44 | long time_adjust; | 44 | long time_adjust; |
45 | 45 | ||
46 | #define CLOCK_TICK_OVERFLOW (LATCH * HZ - CLOCK_TICK_RATE) | ||
47 | #define CLOCK_TICK_ADJUST (((s64)CLOCK_TICK_OVERFLOW * NSEC_PER_SEC) / \ | ||
48 | (s64)CLOCK_TICK_RATE) | ||
49 | |||
50 | static void ntp_update_frequency(void) | 46 | static void ntp_update_frequency(void) |
51 | { | 47 | { |
52 | u64 second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ) | 48 | u64 second_length = (u64)(tick_usec * NSEC_PER_USEC * USER_HZ) |