posix-cpu-timers: Avoid timespec conversion in do_cpu_nanosleep()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jun 2017 21:29:14 +0000 (23:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jun 2017 22:00:46 +0000 (00:00 +0200)
commit343d8fc208e43e50525ae6e0fc4845b9966b7318
tree23538f3c6d280e2f67af57218b035963755f34f8
parent2b2d02856b3176701c91d723356f766d6ee27853
posix-cpu-timers: Avoid timespec conversion in do_cpu_nanosleep()

No point in converting the expiry time back and forth.

No point either to update the value in the caller supplied variable. mark
the rqtp argument const.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
kernel/time/posix-cpu-timers.c