]> git.itanic.dy.fi Git - linux-stable/commit
y2038: itimer: change implementation to timespec64
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Nov 2019 14:27:39 +0000 (15:27 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Nov 2019 13:38:30 +0000 (14:38 +0100)
commitbd40a175769d411b2a37e1c087082ac7ee2c15bb
tree10ef420857e4df8bf36863bb3b399f8005b5531a
parentddbc7d0657e9fd38b69f16bd0310703367b52d29
y2038: itimer: change implementation to timespec64

There is no 64-bit version of getitimer/setitimer since that is not
actually needed. However, the implementation is built around the
deprecated 'struct timeval' type.

Change the code to use timespec64 internally to reduce the dependencies
on timeval and associated helper functions.

Minor adjustments in the code are needed to make the native and compat
version work the same way, and to keep the range check working after
the conversion.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/trace/events/timer.h
kernel/time/itimer.c