]> git.ipfire.org Git - thirdparty/linux.git/commit - lib/locking-selftest.c
lockdep/selftests: Skip the softirq related tests on PREEMPT_RT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 29 Nov 2021 17:46:51 +0000 (18:46 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 4 Dec 2021 09:56:24 +0000 (10:56 +0100)
commita529f8db897625859b640b565325463e5d5ff01e
treef334d7da0946384a62f97873b5d0e6e66c795f6d
parent512bf713cb4c8a42ae76e5ba1a78e70a768af301
lockdep/selftests: Skip the softirq related tests on PREEMPT_RT

The softirq context on PREEMPT_RT is different compared to !PREEMPT_RT.
As such lockdep_softirq_enter() is a nop and the all the "softirq safe"
tests fail on PREEMPT_RT because there is no difference.

Skip the softirq context tests on PREEMPT_RT.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20211129174654.668506-9-bigeasy@linutronix.de
lib/locking-selftest.c