diff options
author | pang.xunlei <pang.xunlei@linaro.org> | 2014-11-18 19:15:16 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-11-21 11:59:57 -0800 |
commit | 21f7eca555ad14e7c7b2cb59a6c6252e74ee5c8b (patch) | |
tree | 1d3beb73efb551aa006118bcf753b1df187ce72c /kernel/time/tick-internal.h | |
parent | 659bc17b80c692e0ccda757e207fc4666d9b3e71 (diff) | |
download | op-kernel-dev-21f7eca555ad14e7c7b2cb59a6c6252e74ee5c8b.zip op-kernel-dev-21f7eca555ad14e7c7b2cb59a6c6252e74ee5c8b.tar.gz |
time: Provide y2038 safe do_settimeofday() replacement
The kernel uses 32-bit signed value(time_t) for seconds elapsed
1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08
on 32-bit systems. This is widely known as the y2038 problem.
As part of addressing "y2038 problem" for in-kernel uses, this patch
adds safe do_settimeofday64() using timespec64.
After this patch, do_settimeofday() is deprecated and all its call
sites will be fixed using do_settimeofday64(), after that it can be
removed.
Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/tick-internal.h')
0 files changed, 0 insertions, 0 deletions