lockdep: Change hardirq{s_enabled,_context} to per-cpu variables
authorPeter Zijlstra <peterz@infradead.org>
Mon, 25 May 2020 10:22:41 +0000 (12:22 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 10 Jul 2020 10:00:02 +0000 (12:00 +0200)
commita21ee6055c30ce68c4e201c6496f0ed2a1936230
tree0d929fda0e9821d2cec6181291a7ad398d68bbf1
parenta6342915881a687b07847b7c57628de07a256525
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
include/linux/irqflags.h
include/linux/lockdep.h
include/linux/sched.h
kernel/fork.c
kernel/locking/lockdep.c
kernel/softirq.c