]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Time: Let user request precision from current_tick_length()
authorjohn stultz <johnstul@us.ibm.com>
Mon, 26 Jun 2006 07:25:07 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:20 +0000 (09:58 -0700)
commit588acdbba245aed161d3c7fe5c26667dd2e77cc3
tree51efc7bb51075b0d25d0e8465d3c056e6a57fe16
parent6d574399dc74e6b6f8181f6c1d378ae1750a0803
[PATCH] Time: Let user request precision from current_tick_length()

Change the current_tick_length() function so it takes an argument which
specifies how much precision to return in shifted nanoseconds.  This provides
a simple way to convert between NTPs internal nanoseconds shifted by
(SHIFT_SCALE - 10) to other shifted nanosecond units that are used by the
clocksource abstraction.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/time.c
include/linux/timex.h
kernel/timer.c