hrtimer: prevent migration of per CPU hrtimers
Impact: per CPU hrtimers can be migrated from a dead CPU
The hrtimer code has no knowledge about per CPU timers, but we need to
prevent the migration of such timers and warn when such a timer is
active at migration time.
Explicitely mark the timers as per CPU and use a more understandable
mode descriptor for the interrupts safe unlocked callback mode, which
is used by hrtimer_sleeper and the scheduler code.
Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- include/linux/hrtimer.h 11 additions, 3 deletionsinclude/linux/hrtimer.h
- kernel/hrtimer.c 25 additions, 12 deletionskernel/hrtimer.c
- kernel/sched.c 2 additions, 2 deletionskernel/sched.c
- kernel/time/tick-sched.c 1 addition, 1 deletionkernel/time/tick-sched.c
- kernel/trace/trace_sysprof.c 1 addition, 1 deletionkernel/trace/trace_sysprof.c
Loading
Please register or sign in to comment