commit | 5ef37b196467bf2f9d41e5579dd388c08b800f7c | [log] [tgz] |
---|---|---|
author | Joe Korty <joe.korty@ccur.com> | Mon Apr 10 22:54:13 2006 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Tue Apr 11 06:18:42 2006 -0700 |
tree | ea1ea6e4c0f7b34b917fa52948e4939fa4e3eaf1 | |
parent | 2395140ee2bffe38b1c8a59318f62882b797f5e6 [diff] [blame] |
[PATCH] add cpu_relax to hrtimer_cancel Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel(). Signed-off-by: Joe Korty <joe.korty@ccur.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index f181ff4..d2a7296 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c
@@ -501,6 +501,7 @@ if (ret >= 0) return ret; + cpu_relax(); } }