futex: use current->time_slack_ns for rt tasks too
authorDarren Hart <dvhltc@us.ibm.com>
Thu, 12 Mar 2009 07:55:59 +0000 (00:55 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Mar 2009 10:20:57 +0000 (11:20 +0100)
commit16f4993f4e9860715918efd4eeac928f8de1218b
treed5416de0cd3df09700e58c8148f67d6963ba19e9
parent5eb3dc62fc5986e85715041c23dcf3832812be4b
futex: use current->time_slack_ns for rt tasks too

RT tasks should set their timer slack to 0 on their own.  This
patch removes the 'if (rt_task()) slack = 0;' block in
futex_wait.

Build and boot tested on a 4 way Intel x86_64 workstation.
Passes basic pthread_mutex and PI tests out of
ltp/testcases/realtime.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Arjan van de Ven <arjan@linux.intel.com>
LKML-Reference: <20090312075559.9856.28822.stgit@Aeon>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/futex.c