]> git.baikalelectronics.ru Git - kernel.git/commit
sched/wait: Add __wake_up_all_locked() API
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Nov 2011 23:04:00 +0000 (00:04 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 1 Mar 2012 09:28:04 +0000 (10:28 +0100)
commit85c83eb01629c94f2d1c3e16a83a32afc1050ffb
tree3338725751540571a7d490b252f1b450554a6847
parent9ca24b4ca05ec06ab0185d01ec21a2b3dd7bbf74
sched/wait: Add __wake_up_all_locked() API

For code which protects the waitqueue itself with another lock it
makes no sense to acquire the waitqueue lock for wakeup all. Provide
__wake_up_all_locked().

This is an optimization on the vanilla kernel (to be used by the
PCI code) and an important semantic distinction on -rt.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-ux6m4b8jonb9inx8xafh77ds@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/wait.h
kernel/sched/core.c