]> git.baikalelectronics.ru Git - kernel.git/commit
y2038: make do_gettimeofday() and get_seconds() inline
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Aug 2018 13:18:20 +0000 (15:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 27 Aug 2018 12:45:58 +0000 (14:45 +0200)
commitf2a199efabb9cc685ea81c30b52e3cb64622668a
treee8ee35b964d322887f70cf5255fa324b873b2b08
parentb823ff27a5c559a8778a15de51f2242084c3fc9b
y2038: make do_gettimeofday() and get_seconds() inline

get_seconds() and do_gettimeofday() are only used by a few modules now any
more (waiting for the respective patches to get accepted), and they are
among the last holdouts of code that is not y2038 safe in the core kernel.

Move the implementation into the timekeeping32.h header to clean up
the core kernel and isolate the old interfaces further.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/linux/timekeeping32.h
kernel/time/time.c
kernel/time/timekeeping.c