]> err.no Git - linux-2.6/commitdiff
[PATCH] del_timer_sync(): add cpu_relax()
authorAndrew Morton <akpm@osdl.org>
Fri, 14 Jul 2006 07:24:06 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:52 +0000 (21:53 -0700)
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>
kernel/timer.c

index 2a87430a58d4046d10000fcd6bd4e56308a9a4bc..acfa557e685b9291b09a8e72fa3492d4d16c6912 100644 (file)
@@ -374,6 +374,7 @@ int del_timer_sync(struct timer_list *timer)
                int ret = try_to_del_timer_sync(timer);
                if (ret >= 0)
                        return ret;
+               cpu_relax();
        }
 }