mirror of https://gitee.com/openkylin/linux.git
[PATCH] del_timer_sync(): add cpu_relax()
Relax the CPU in the del_timer_sync() busywait loop. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
52e92e5788
commit
a0009652af
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue