time: Introduce current_kernel_time64()
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 29 Jul 2015 12:09:43 +0000 (20:09 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 17 Aug 2015 18:25:35 +0000 (11:25 -0700)
commit8758a240e2d74c5932ab51a73377e6507b7fd441
treef430066a32f00ee1c4e434e51936067e80e618c3
parent19a46fe57a005a884ccb38419071f772ac2fca2b
time: Introduce current_kernel_time64()

The current_kernel_time() is not year 2038 safe on 32bit systems
since it returns a timespec value. Introduce current_kernel_time64()
which returns a timespec64 value.

Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeping.h
kernel/time/timekeeping.c