hrtimer: Consolidate hrtimer_init() + hrtimer_init_sleeper() calls
hrtimer_init_sleeper() calls require prior initialisation of the hrtimer object which is embedded into the hrtimer_sleeper. Combine the initialization and spare a function call. Fixup all call sites. This is also a preparatory change for PREEMPT_RT to do hrtimer sleeper specific initializations of the embedded hrtimer without modifying any of the call sites. No functional change. [ anna-maria: Minor cleanups ] [ tglx: Adopted to the removal of the task argument of hrtimer_init_sleeper() and trivial polishing. Folded a fix from Stephen Rothwell for the vsoc code ] Signed-off-by:Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by:
Anna-Maria Gleixner <anna-maria@linutronix.de> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Acked-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20190726185752.887468908@linutronix.de
Showing
- block/blk-mq.c 1 addition, 2 deletionsblock/blk-mq.c
- drivers/staging/android/vsoc.c 2 additions, 4 deletionsdrivers/staging/android/vsoc.c
- include/linux/hrtimer.h 14 additions, 3 deletionsinclude/linux/hrtimer.h
- include/linux/wait.h 2 additions, 2 deletionsinclude/linux/wait.h
- kernel/futex.c 3 additions, 5 deletionskernel/futex.c
- kernel/time/hrtimer.c 32 additions, 11 deletionskernel/time/hrtimer.c
- net/core/pktgen.c 1 addition, 3 deletionsnet/core/pktgen.c
Please register or sign in to comment