From: Andrew Morton Date: Fri, 14 Jul 2006 07:24:06 +0000 (-0700) Subject: [PATCH] del_timer_sync(): add cpu_relax() X-Git-Tag: v2.6.18-rc2~58 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a0009652af385a42f0e0604136f772ead406c78d;p=linux-2.6-omap-h63xx.git [PATCH] del_timer_sync(): add cpu_relax() Relax the CPU in the del_timer_sync() busywait loop. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/timer.c b/kernel/timer.c index 2a87430a58d..acfa557e685 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -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(); } }