aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 6d50728ef2e7..bd18f60e4c6c 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -487,11 +487,9 @@ futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout,
487 if (!time) 487 if (!time)
488 return NULL; 488 return NULL;
489 489
490 hrtimer_init_on_stack(&timeout->timer, (flags & FLAGS_CLOCKRT) ? 490 hrtimer_init_sleeper_on_stack(timeout, (flags & FLAGS_CLOCKRT) ?
491 CLOCK_REALTIME : CLOCK_MONOTONIC, 491 CLOCK_REALTIME : CLOCK_MONOTONIC,
492 HRTIMER_MODE_ABS); 492 HRTIMER_MODE_ABS);
493 hrtimer_init_sleeper(timeout, current);
494
495 /* 493 /*
496 * If range_ns is 0, calling hrtimer_set_expires_range_ns() is 494 * If range_ns is 0, calling hrtimer_set_expires_range_ns() is
497 * effectively the same as calling hrtimer_set_expires(). 495 * effectively the same as calling hrtimer_set_expires().
@@ -2613,7 +2611,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
2613 2611
2614 /* Arm the timer */ 2612 /* Arm the timer */
2615 if (timeout) 2613 if (timeout)
2616 hrtimer_start_expires(&timeout->timer, HRTIMER_MODE_ABS); 2614 hrtimer_sleeper_start_expires(timeout, HRTIMER_MODE_ABS);
2617 2615
2618 /* 2616 /*
2619 * If we have been removed from the hash list, then another task 2617 * If we have been removed from the hash list, then another task
@@ -2899,7 +2897,7 @@ retry_private:
2899 } 2897 }
2900 2898
2901 if (unlikely(to)) 2899 if (unlikely(to))
2902 hrtimer_start_expires(&to->timer, HRTIMER_MODE_ABS); 2900 hrtimer_sleeper_start_expires(to, HRTIMER_MODE_ABS);
2903 2901
2904 ret = rt_mutex_wait_proxy_lock(&q.pi_state->pi_mutex, to, &rt_waiter); 2902 ret = rt_mutex_wait_proxy_lock(&q.pi_state->pi_mutex, to, &rt_waiter);
2905 2903