From: Andrew Morton Date: Fri, 14 Jul 2006 07:24:06 +0000 (-0700) Subject: [PATCH] del_timer_sync(): add cpu_relax() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a0009652af385a42f0e0604136f772ead406c78d;p=openwrt%2Fstaging%2Fblogic.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 2a87430a58d4..acfa557e685b 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(); } }