diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2015-07-29 20:18:31 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-08-17 11:25:41 -0700 |
commit | 9ca308506062fc4a4ee8ca7ad2f71033c831c2fb (patch) | |
tree | b2d7d5d5dabaef01962504d8c1a1027efbbaf1b8 /lib | |
parent | 8758a240e2d74c5932ab51a73377e6507b7fd441 (diff) | |
download | lwn-9ca308506062fc4a4ee8ca7ad2f71033c831c2fb.tar.gz lwn-9ca308506062fc4a4ee8ca7ad2f71033c831c2fb.zip |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions