]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/futex.c
h63xx: initial omap board support.
[linux-2.6-omap-h63xx.git] / kernel / futex.c
index 4cd5b4319b0439f30b9cb4461c541d1429da61af..8af10027514bb1cc9cb2702051330e52bf43a533 100644 (file)
@@ -1296,10 +1296,14 @@ static int futex_wait(u32 __user *uaddr, struct rw_semaphore *fshared,
                if (!abs_time)
                        schedule();
                else {
+                       unsigned long slack;
+                       slack = current->timer_slack_ns;
+                       if (rt_task(current))
+                               slack = 0;
                        hrtimer_init_on_stack(&t.timer, CLOCK_MONOTONIC,
                                                HRTIMER_MODE_ABS);
                        hrtimer_init_sleeper(&t, current);
-                       hrtimer_set_expires(&t.timer, *abs_time);
+                       hrtimer_set_expires_range_ns(&t.timer, *abs_time, slack);
 
                        hrtimer_start_expires(&t.timer, HRTIMER_MODE_ABS);
                        if (!hrtimer_active(&t.timer))