]> git.baikalelectronics.ru Git - kernel.git/commit
time: add get_timespec64 and put_timespec64
authorDeepa Dinamani <deepa.kernel@gmail.com>
Sat, 24 Jun 2017 18:45:02 +0000 (11:45 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Jun 2017 01:58:46 +0000 (21:58 -0400)
commit3fa9d24f885482bae200e99ba1f7aee234f923b7
tree710c0991d9c08ef76eb60632ca2730bf59d9172b
parent5fc8300fec0b3c3868fccebef24523a11984a424
time: add get_timespec64 and put_timespec64

Add helper functions to convert between struct timespec64 and
struct timespec at userspace boundaries.

This is a preparatory patch to use timespec64 as the basic type
internally in the kernel as timespec is not y2038 safe on 32 bit systems.
The patch helps the cause by containing all data conversions at the
userspace boundaries within these functions.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/compat.h
include/linux/time.h
kernel/compat.c
kernel/time/time.c