diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-07-26 20:30:49 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-30 23:57:51 +0200 |
commit | b74494872555d1f7888dfd9225700a363f4a84fc (patch) | |
tree | 1135ad192836fe3c725448640608e3320549f5a1 /include/linux/wait.h | |
parent | 511885d7061eda3eb1faf3f57dcc936ff75863f1 (diff) | |
download | linux-stable-b74494872555d1f7888dfd9225700a363f4a84fc.tar.gz linux-stable-b74494872555d1f7888dfd9225700a363f4a84fc.tar.bz2 linux-stable-b74494872555d1f7888dfd9225700a363f4a84fc.zip |
hrtimer: Remove task argument from hrtimer_init_sleeper()
All callers hand in 'current' and that's the only task pointer which
actually makes sense. Remove the task argument and set current in the
function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190726185752.791885290@linutronix.de
Diffstat (limited to 'include/linux/wait.h')
-rw-r--r-- | include/linux/wait.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/wait.h b/include/linux/wait.h index b6f77cf60dd7..d57832774ca6 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -489,7 +489,7 @@ do { \ struct hrtimer_sleeper __t; \ \ hrtimer_init_on_stack(&__t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); \ - hrtimer_init_sleeper(&__t, current); \ + hrtimer_init_sleeper(&__t); \ if ((timeout) != KTIME_MAX) \ hrtimer_start_range_ns(&__t.timer, timeout, \ current->timer_slack_ns, \ |