projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ce33ec
)
ipc/sem: explicitly inline check_restart
author
Davidlohr Bueso
<
[email protected]
>
Wed, 14 Dec 2016 23:06:40 +0000
(15:06 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 15 Dec 2016 00:04:08 +0000
(16:04 -0800)
The compiler already does this, but make it explicit. This helper is
really small and also used in update_queue's main loop, which is O(N^2)
scanning. Inline and avoid the function overhead.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Davidlohr Bueso <
[email protected]
>
Cc: Manfred Spraul <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
ipc/sem.c
patch
|
blob
|
history
diff --git
a/ipc/sem.c
b/ipc/sem.c
index c14883f5a4b530ccbbc10a18f186a24d7e2cc921..084e1f55ca72ade99873154dff5e5bb4eac1da95 100644
(file)
--- a/
ipc/sem.c
+++ b/
ipc/sem.c
@@
-772,7
+772,7
@@
static void unlink_queue(struct sem_array *sma, struct sem_queue *q)
* modified the array.
* Note that wait-for-zero operations are handled without restart.
*/
-static int check_restart(struct sem_array *sma, struct sem_queue *q)
+static in
line in
t check_restart(struct sem_array *sma, struct sem_queue *q)
{
/* pending complex alter operations are too difficult to analyse */
if (!list_empty(&sma->pending_alter))