OSDN Git Service

time: make adjtime compat handling available for 32 bit
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Jan 2019 12:28:47 +0000 (13:28 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 6 Feb 2019 23:13:27 +0000 (00:13 +0100)
commit4d5f007eedb74d71a7bde2bff69b6a31ad8ab427
tree9704984d9137621c8bdbba2e1c86018e5d3c755f
parent805089c2f77047d81f47ddc227435d606ceb180e
time: make adjtime compat handling available for 32 bit

We want to reuse the compat_timex handling on 32-bit architectures the
same way we are using the compat handling for timespec when moving to
64-bit time_t.

Move all definitions related to compat_timex out of the compat code
into the normal timekeeping code, along with a rename to old_timex32,
corresponding to the timespec/timeval structures, and make it controlled
by CONFIG_COMPAT_32BIT_TIME, which 32-bit architectures will then select.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/compat.h
include/linux/time32.h
kernel/compat.c
kernel/time/posix-timers.c
kernel/time/time.c