]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
futex: make clock selectable for FUTEX_WAIT_BITSET
authorThomas Gleixner <tglx@linutronix.de>
Thu, 20 Nov 2008 18:02:53 +0000 (10:02 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 24 Nov 2008 19:00:40 +0000 (20:00 +0100)
commit1acdac104668a0834cfa267de9946fac7764d486
treebae8ffeb2425412c0bffbdf728b45104fe3178f2
parent3e1d7a6219ab64e13b10b1a77c0625db9a8bd8db
futex: make clock selectable for FUTEX_WAIT_BITSET

FUTEX_WAIT_BITSET could be used instead of FUTEX_WAIT by setting the
bit set to FUTEX_BITSET_MATCH_ANY, but FUTEX_WAIT uses CLOCK_REALTIME
while FUTEX_WAIT_BITSET uses CLOCK_MONOTONIC.

Add a flag to select CLOCK_REALTIME for FUTEX_WAIT_BITSET so glibc can
replace the FUTEX_WAIT logic which needs to do gettimeofday() calls
before and after the syscall to convert the absolute timeout to a
relative timeout for FUTEX_WAIT.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ulrich Drepper <drepper@redhat.com>
include/linux/futex.h
kernel/futex.c