itimers: Prepare for PREEMPT_RT
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Tue, 30 Jul 2019 22:33:51 +0000 (00:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Aug 2019 18:51:24 +0000 (20:51 +0200)
commitc7e6d704a0097e59667495cf52dcc4e1085e620b
treec3775ba9173d0cff6fee1dbb7aee1ecb13ab9e5a
parenta125ecc16453a4fe0ba865c7df87b9c722991fdf
itimers: Prepare for PREEMPT_RT

Use the hrtimer_cancel_wait_running() synchronization mechanism to prevent
priority inversion and live locks on PREEMPT_RT.

As a benefit the retry loop gains the missing cpu_relax() on !RT.

[ tglx: Split out of combo patch ]

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@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.690771827@linutronix.de
kernel/time/itimer.c