posix-timers: Rework cancel retry loops
authorThomas Gleixner <tglx@linutronix.de>
Tue, 30 Jul 2019 22:33:53 +0000 (00:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Aug 2019 18:51:24 +0000 (20:51 +0200)
commit6945e5c2abe008302b20266248d6de95575311a8
treee9004e1b218e317fb6f28d7b8201497393723c54
parent21670ee44f1e3565030bcabc62178b8e5eb2fce7
posix-timers: Rework cancel retry loops

As a preparatory step for adding the PREEMPT RT specific synchronization
mechanism to wait for a running timer callback, rework the timer cancel
retry loops so they call a common function. This allows trivial
substitution in one place.

Originally-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190730223828.874901027@linutronix.de
kernel/time/posix-timers.c