]> git.karo-electronics.de Git - linux-beck.git/commit
time: Provide y2038 safe timekeeping_inject_sleeptime() replacement
authorpang.xunlei <pang.xunlei@linaro.org>
Tue, 18 Nov 2014 11:15:17 +0000 (19:15 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 21 Nov 2014 19:59:57 +0000 (11:59 -0800)
commit04d9089086a8231ddc69a9f3f25e971a3c1d25e6
tree81cb703b3553469fad9356abac0563881dd405b4
parent21f7eca555ad14e7c7b2cb59a6c6252e74ee5c8b
time: Provide y2038 safe timekeeping_inject_sleeptime() replacement

As part of addressing "y2038 problem" for in-kernel uses, this
patch adds timekeeping_inject_sleeptime64() using timespec64.

After this patch, timekeeping_inject_sleeptime() is deprecated
and all its call sites will be fixed using the new interface,
after that it can be removed.

NOTE: timekeeping_inject_sleeptime() is safe actually, but we
want to eliminate timespec eventually, so comes this patch.

Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeping.h
kernel/time/timekeeping.c