From bf9c71bd30a6bc2056100249e919b2b3a466ec0c Mon Sep 17 00:00:00 2001 From: Srinivasarao Pathipati Date: Thu, 26 Jan 2023 23:57:22 +0530 Subject: [PATCH] Revert "wait: Fix __wait_event_hrtimeout for RT/DL tasks" This reverts commit bd80dd86f9bfc6c86ac7dfda912b6706953c4b59. Change-Id: Ic4a1805e6dcdd0a0581acff9cc488676a69402a8 Signed-off-by: Srinivasarao Pathipati --- include/linux/wait.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/wait.h b/include/linux/wait.h index 7d04c1b588c7..5903b1d17c92 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -529,11 +529,10 @@ do { \ \ hrtimer_init_sleeper_on_stack(&__t, CLOCK_MONOTONIC, \ HRTIMER_MODE_REL); \ - if ((timeout) != KTIME_MAX) { \ - hrtimer_set_expires_range_ns(&__t.timer, timeout, \ - current->timer_slack_ns); \ - hrtimer_sleeper_start_expires(&__t, HRTIMER_MODE_REL); \ - } \ + if ((timeout) != KTIME_MAX) \ + hrtimer_start_range_ns(&__t.timer, timeout, \ + current->timer_slack_ns, \ + HRTIMER_MODE_REL); \ \ __ret = ___wait_event(wq_head, condition, state, 0, 0, \ if (!__t.task) { \