Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117618
b: refs/heads/master
c: ae4b748
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven committed Sep 11, 2008
1 parent 8d4be8e commit b0adb61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bd012060f962567aadb52b27b2fc8fdc91102c7
refs/heads/master: ae4b748e81b7e366f04f55229d5e372e372c33af
6 changes: 5 additions & 1 deletion trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b0adb61

Please sign in to comment.