]> git.karo-electronics.de Git - linux-beck.git/commit
time: Introduce do_sys_settimeofday64()
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 8 Apr 2016 06:02:12 +0000 (14:02 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 22 Apr 2016 18:49:04 +0000 (11:49 -0700)
commit86d3473224b004f920c107206d181d37db735145
tree3c3f646ec0d3947a9b3784b1b1d42bc167e9893c
parent457db29bfcfd1d9cc717587c446a89d60499d4a9
time: Introduce do_sys_settimeofday64()

The do_sys_settimeofday() function uses a timespec, which is not year
2038 safe on 32bit systems.

Thus this patch introduces do_sys_settimeofday64(), which allows us to
transition users of do_sys_settimeofday() to using 64bit time types.

Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
[jstultz: Include errno-base.h to avoid build issue on some arches]
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeping.h
kernel/time/time.c