From a0009652af385a42f0e0604136f772ead406c78d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 14 Jul 2006 00:24:06 -0700 Subject: [PATCH] [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 --- kernel/timer.c | 1 + 1 file changed, 1 insertion(+) 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(); } } -- 2.30.2