time: Introduce timespec64_to_jiffies()/jiffies_to_timespec64()
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 29 Jul 2015 12:18:31 +0000 (20:18 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 17 Aug 2015 18:25:41 +0000 (11:25 -0700)
commit9ca308506062fc4a4ee8ca7ad2f71033c831c2fb
treeb2d7d5d5dabaef01962504d8c1a1027efbbaf1b8
parent8758a240e2d74c5932ab51a73377e6507b7fd441
time: Introduce timespec64_to_jiffies()/jiffies_to_timespec64()

The conversion between struct timespec and jiffies is not year 2038
safe on 32bit systems. Introduce timespec64_to_jiffies() and
jiffies_to_timespec64() functions which use struct timespec64 to
make it ready for 2038 issue.

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/jiffies.h
kernel/time/time.c