Re: [PATCH 2.6.21-rc4-mm1 2/4] Make futex_wait() use an hrtimer for timeout

2007-03-26 Thread Andrew Morton
On Wed, 21 Mar 2007 10:54:34 +0100 [EMAIL PROTECTED] wrote: > This patch modifies futex_wait() to use an hrtimer + schedule() in place of > schedule_timeout(). > > schedule_timeout() is tick based, therefore the timeout granularity is > the tick (1 ms, 4 ms or 10 ms depending on HZ). By using a

[PATCH 2.6.21-rc4-mm1 2/4] Make futex_wait() use an hrtimer for timeout

2007-03-21 Thread Pierre . Peiffer
This patch modifies futex_wait() to use an hrtimer + schedule() in place of schedule_timeout(). schedule_timeout() is tick based, therefore the timeout granularity is the tick (1 ms, 4 ms or 10 ms depending on HZ). By using a high resolution timer for timeout wakeup, we can attain a much finer t