From: Darren Hart Date: Fri, 3 Apr 2009 20:40:22 +0000 (-0700) Subject: futex: add FUTEX_HAS_TIMEOUT flag to restart.futex.flags X-Git-Tag: v2.6.31-rc1~409^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a72188d8a64ebe74722f1cf7ffac41b41ffdba21;p=pandora-kernel.git futex: add FUTEX_HAS_TIMEOUT flag to restart.futex.flags Currently restart is only used if there is a timeout. The requeue_pi functionality requires restarting to futex_lock_pi() on signal after wakeup in futex_wait_requeue_pi() regardless of if there was a timeout or not. Using 0 for the timeout value is confusing as that could indicate an expired timer. The flag makes this explicit. While the check is not technically needed in futex_wait_restart(), doing so makes the code consistent with and will avoid confusion should the need arise to restart wait without a timeout. Signed-off-by: Darren Hart Reviewed-by: Thomas Gleixner Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed