Commit 5ef37b19 authored by Joe Korty's avatar Joe Korty Committed by Linus Torvalds
Browse files

[PATCH] add cpu_relax to hrtimer_cancel



Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel().

Signed-off-by: default avatarJoe Korty <joe.korty@ccur.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2395140e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timer)

		if (ret >= 0)
			return ret;
		cpu_relax();
	}
}