mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
[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>
This commit is contained in:
parent
ad596171ed
commit
260a42309b
3 changed files with 19 additions and 6 deletions
|
|
@ -304,7 +304,7 @@ time_interpolator_reset(void)
|
|||
#endif /* !CONFIG_TIME_INTERPOLATION */
|
||||
|
||||
/* Returns how long ticks are at present, in ns / 2^(SHIFT_SCALE-10). */
|
||||
extern u64 current_tick_length(void);
|
||||
extern u64 current_tick_length(long);
|
||||
|
||||
extern int do_adjtimex(struct timex *);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue