projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e92e5
)
[PATCH] del_timer_sync(): add cpu_relax()
author
Andrew Morton
<akpm@osdl.org>
Fri, 14 Jul 2006 07:24:06 +0000
(
00:24
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:52 +0000
(21:53 -0700)
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>
kernel/timer.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/timer.c
b/kernel/timer.c
index 2a87430a58d4046d10000fcd6bd4e56308a9a4bc..acfa557e685b9291b09a8e72fa3492d4d16c6912 100644
(file)
--- 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();
}
}