From: Andrew Morton Date: Fri, 14 Jul 2006 07:24:06 +0000 (-0700) Subject: [PATCH] del_timer_sync(): add cpu_relax() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0009652af385a42f0e0604136f772ead406c78d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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(); } }