]> git.baikalelectronics.ru Git - kernel.git/commit
ipc/sem: explicitly inline check_restart
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 14 Dec 2016 23:06:40 +0000 (15:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 00:04:08 +0000 (16:04 -0800)
commit159d2deede1ef79c1c9c389da64b9518d8edefbd
tree683dd94878d05e85e464627ddd4aa08db0b0bcdc
parent4e5044750c6b6b7b098a1b646b87bb14fb585f1d
ipc/sem: explicitly inline check_restart

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/1474225896-10066-5-git-send-email-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/sem.c