kernel-ark/arch
Frederic Weisbecker 7a10e2a919 x86: Use lockdep to assert IRQs are disabled/enabled
Use lockdep to check that IRQs are enabled or disabled as expected. This
way the sanity check only shows overhead when concurrency correctness
debug code is enabled.

It also makes no more sense to fix the IRQ flags when a bug is detected
as the assertion is now pure config-dependent debugging. And to quote
Peter Zijlstra:

	The whole if !disabled, disable logic is uber paranoid programming,
	but I don't think we've ever seen that WARN trigger, and if it does
	(and then burns the kernel) we at least know what happend.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David S . Miller <davem@davemloft.net>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1509980490-4285-8-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-11-08 11:13:50 +01:00
..
alpha Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
arc Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
arm Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
arm64 Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
blackfin Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
c6x License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
cris License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
frv License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
h8300 License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
hexagon Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
ia64 Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
m32r Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
m68k License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
metag Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
microblaze License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
mips Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
mn10300 Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
nios2 License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
openrisc License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
parisc Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
powerpc Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
s390 Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
score License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
sh Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
sparc Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
tile Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
um Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
unicore32 License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
x86 x86: Use lockdep to assert IRQs are disabled/enabled 2017-11-08 11:13:50 +01:00
xtensa Merge branch 'linus' into locking/core, to resolve conflicts 2017-11-07 10:32:44 +01:00
.gitignore
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00