diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2017-06-07 09:42:26 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-14 00:00:40 +0200 |
commit | 86a9c446c13ecd8793ea8599761322aed125d542 (patch) | |
tree | bde83380c319ae48a92e148e958b4987310d6051 /fs/coda/inode.c | |
parent | 67edab48caeb75d412706f4b9d3107afd1e07623 (diff) | |
download | blackbird-obmc-linux-86a9c446c13ecd8793ea8599761322aed125d542.tar.gz blackbird-obmc-linux-86a9c446c13ecd8793ea8599761322aed125d542.zip |
posix-cpu-timers: Move copyout of timespec into do_cpu_nanosleep()
The posix-cpu-timer nanosleep() implementation can be simplified by moving
the copy out of the remaining time to do_cpu_nanosleep() which is shared
between the real nanosleep function and the restart function.
The pointer to the timespec64 which is updated has to be stored in the
restart block anyway. Instead of storing it only in the restart case, store
it before calling do_cpu_nanosleep() and copy the remaining time in the
signal exit path.
[ tglx: Added changelog ]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170607084241.28657-1-viro@ZenIV.linux.org.uk
Diffstat (limited to 'fs/coda/inode.c')
0 files changed, 0 insertions, 0 deletions