aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-07-26 14:30:49 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-07-30 17:57:51 -0400
commitb74494872555d1f7888dfd9225700a363f4a84fc (patch)
tree1135ad192836fe3c725448640608e3320549f5a1 /include/linux
parent511885d7061eda3eb1faf3f57dcc936ff75863f1 (diff)
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')
-rw-r--r--include/linux/hrtimer.h3
-rw-r--r--include/linux/wait.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index 4971100a8cab..3c74f89367c4 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -463,8 +463,7 @@ extern long hrtimer_nanosleep(const struct timespec64 *rqtp,
463 const enum hrtimer_mode mode, 463 const enum hrtimer_mode mode,
464 const clockid_t clockid); 464 const clockid_t clockid);
465 465
466extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, 466extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl);
467 struct task_struct *tsk);
468 467
469extern int schedule_hrtimeout_range(ktime_t *expires, u64 delta, 468extern int schedule_hrtimeout_range(ktime_t *expires, u64 delta,
470 const enum hrtimer_mode mode); 469 const enum hrtimer_mode mode);
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 { \
489 struct hrtimer_sleeper __t; \ 489 struct hrtimer_sleeper __t; \
490 \ 490 \
491 hrtimer_init_on_stack(&__t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); \ 491 hrtimer_init_on_stack(&__t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); \
492 hrtimer_init_sleeper(&__t, current); \ 492 hrtimer_init_sleeper(&__t); \
493 if ((timeout) != KTIME_MAX) \ 493 if ((timeout) != KTIME_MAX) \
494 hrtimer_start_range_ns(&__t.timer, timeout, \ 494 hrtimer_start_range_ns(&__t.timer, timeout, \
495 current->timer_slack_ns, \ 495 current->timer_slack_ns, \