summaryrefslogtreecommitdiffstats
path: root/kernel/futex_compat.c
diff options
context:
space:
mode:
authorPierre Peiffer2007-05-09 11:35:00 +0200
committerLinus Torvalds2007-05-09 21:30:55 +0200
commitec92d08292d3e9b0823eba138a4564d2d39f25c7 (patch)
tree4dc94792e83d51b036d52e92e8d4f137a2efce97 /kernel/futex_compat.c
parentdeclare struct ktime (diff)
downloadkernel-qcow2-linux-ec92d08292d3e9b0823eba138a4564d2d39f25c7.tar.gz
kernel-qcow2-linux-ec92d08292d3e9b0823eba138a4564d2d39f25c7.tar.xz
kernel-qcow2-linux-ec92d08292d3e9b0823eba138a4564d2d39f25c7.zip
futex priority based wakeup
Today, all threads waiting for a given futex are woken in FIFO order (first waiter woken first) instead of priority order. This patch makes use of plist (pirotity ordered lists) instead of simple list in futex_hash_bucket. All non-RT threads are stored with priority MAX_RT_PRIO, causing them to be woken last, in FIFO order (RT-threads are woken first, in priority order). Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net> Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net> Cc: Ingo Molnar <mingo@elte.hu> Cc: Ulrich Drepper <drepper@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/futex_compat.c')
0 files changed, 0 insertions, 0 deletions