]> git.baikalelectronics.ru Git - kernel.git/commit
ntp: increase time_freq resolution
authorRoman Zippel <zippel@linux-m68k.org>
Thu, 1 May 2008 11:34:34 +0000 (04:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 May 2008 15:03:58 +0000 (08:03 -0700)
commit21599164671b9ba3347698b6342b4842ba530b48
treeaa2d11a2df37d631236a28713873023632f74a91
parent77793c36b9bb6b36e3b8222d64f47e74c123b636
ntp: increase time_freq resolution

This changes time_freq to a 64bit value and makes it static (the only outside
user had no real need to modify it).  Intermediate values were already 64bit,
so the change isn't that big, but it saves a little in shifts by replacing
SHIFT_NSEC with TICK_LENGTH_SHIFT.  PPM_SCALE is then used to convert between
user space and kernel space representation.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/time.c
include/linux/timex.h
kernel/time/ntp.c