diff options
author | DengChao <chao.deng@linaro.org> | 2015-12-13 12:24:18 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-12-16 16:50:55 -0800 |
commit | dee3665416a8553279d10b62b5e62685cbe5daa8 (patch) | |
tree | dd4a6644f7b8e70467772438d82af56f1ee06c49 /kernel/time/timekeeping_internal.h | |
parent | 37cf4dc3370fbca0344e23bb96446eb2c3548ba7 (diff) | |
download | linux-stable-dee3665416a8553279d10b62b5e62685cbe5daa8.tar.gz linux-stable-dee3665416a8553279d10b62b5e62685cbe5daa8.tar.bz2 linux-stable-dee3665416a8553279d10b62b5e62685cbe5daa8.zip |
timekeeping: Provide internal function __ktime_get_real_seconds
In order to fix Y2038 issues in the ntp code we will need replace
get_seconds() with ktime_get_real_seconds() but as the ntp code uses
the timekeeping lock which is also used by ktime_get_real_seconds(),
we need a version without locking.
Add a new function __ktime_get_real_seconds() in timekeeping to
do this.
Reviewed-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: DengChao <chao.deng@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/timekeeping_internal.h')
-rw-r--r-- | kernel/time/timekeeping_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/timekeeping_internal.h b/kernel/time/timekeeping_internal.h index 4ea005a7f9da..e20466ffc208 100644 --- a/kernel/time/timekeeping_internal.h +++ b/kernel/time/timekeeping_internal.h @@ -26,4 +26,6 @@ static inline cycle_t clocksource_delta(cycle_t now, cycle_t last, cycle_t mask) } #endif +extern time64_t __ktime_get_real_seconds(void); + #endif /* _TIMEKEEPING_INTERNAL_H */ |