commit | a0009652af385a42f0e0604136f772ead406c78d | [log] [tgz] |
---|---|---|
author | Andrew Morton <akpm@osdl.org> | Fri Jul 14 00:24:06 2006 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Fri Jul 14 21:53:52 2006 -0700 |
tree | 166224a3c3239ae5f7bd07759dd70b9bb2d95e28 | |
parent | 52e92e5788139921352213fa6faf6e30ff1f2f5a [diff] |
[PATCH] del_timer_sync(): add cpu_relax() Relax the CPU in the del_timer_sync() busywait loop. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/kernel/timer.c b/kernel/timer.c index 2a87430..acfa557 100644 --- a/kernel/timer.c +++ b/kernel/timer.c
@@ -374,6 +374,7 @@ int ret = try_to_del_timer_sync(timer); if (ret >= 0) return ret; + cpu_relax(); } }