lockdep: Change hardirq{s_enabled,_context} to per-cpu variables
Currently all IRQ-tracking state is in task_struct, this means that task_struct needs to be defined before we use it. Especially for lockdep_assert_irq*() this can lead to header-hell. Move the hardirq state into per-cpu variables to avoid the task_struct dependency. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20200623083721.512673481@infradead.org
Showing
- include/linux/irqflags.h 12 additions, 7 deletionsinclude/linux/irqflags.h
- include/linux/lockdep.h 18 additions, 16 deletionsinclude/linux/lockdep.h
- include/linux/sched.h 0 additions, 2 deletionsinclude/linux/sched.h
- kernel/fork.c 1 addition, 3 deletionskernel/fork.c
- kernel/locking/lockdep.c 15 additions, 15 deletionskernel/locking/lockdep.c
- kernel/softirq.c 6 additions, 0 deletionskernel/softirq.c
Loading
Please register or sign in to comment