diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2017-06-07 10:42:27 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-14 00:00:40 +0200 |
commit | 15f27ce24cb613e6e01ce27c4094c55e55dde5d4 (patch) | |
tree | 8fbbecce0be3837fcea78d9854c8d04d3f6d4441 /include/video/sisfb.h | |
parent | posix-cpu-timers: Move copyout of timespec into do_cpu_nanosleep() (diff) | |
download | linux-15f27ce24cb613e6e01ce27c4094c55e55dde5d4.tar.xz linux-15f27ce24cb613e6e01ce27c4094c55e55dde5d4.zip |
alarmtimer: Move copyout and freeze handling into alarmtimer_do_nsleep()
The alarmtimer nanosleep() implementation can be simplified by moving the
copy out of the remaining time to alarmtimer_do_nsleep() 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 alarmtimer_do_nsleep() 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-2-viro@ZenIV.linux.org.uk
Diffstat (limited to 'include/video/sisfb.h')
0 files changed, 0 insertions, 0 deletions