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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0009652af385a42f0e0604136f772ead406c78d;p=linux-2.6 [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 2a87430a58..acfa557e68 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(); } }