diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2017-06-24 11:45:06 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-06-30 04:14:14 -0400 |
commit | c0edd7c9acd0eaee149ab6cb4441cc71a1af87f0 (patch) | |
tree | 9c670f99b106a03963fa9a2bc606617cd0958497 /kernel/time/alarmtimer.c | |
parent | 5c4994102fb508d4a0f7a8afa46560c314c1ebd4 (diff) | |
download | linux-c0edd7c9acd0eaee149ab6cb4441cc71a1af87f0.tar.bz2 |
nanosleep: Use get_timespec64() and put_timespec64()
Usage of these apis and their compat versions makes
the syscalls: clock_nanosleep and nanosleep and
their compat implementations simpler.
This is a preparatory patch to isolate data conversions to
struct timespec64 at userspace boundaries. This helps contain
the changes needed to transition to new y2038 safe types.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/time/alarmtimer.c')
-rw-r--r-- | kernel/time/alarmtimer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index c991cf212c6d..0b8ff7d257ea 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -712,14 +712,14 @@ static int alarmtimer_do_nsleep(struct alarm *alarm, ktime_t absexp, alarmtimer_freezerset(absexp, type); restart = ¤t->restart_block; if (restart->nanosleep.type != TT_NONE) { - struct timespec rmt; + struct timespec64 rmt; ktime_t rem; rem = ktime_sub(absexp, alarm_bases[type].gettime()); if (rem <= 0) return 0; - rmt = ktime_to_timespec(rem); + rmt = ktime_to_timespec64(rem); return nanosleep_copyout(restart, &rmt); } |