Skip to content

Commit f22f713

Browse files
Waiman-LongIngo Molnar
authored andcommitted
locking/rwsem: Make DEBUG_RWSEMS and PREEMPT_RT mutually exclusive
The debugging code enabled by CONFIG_DEBUG_RWSEMS=y will only be compiled in when CONFIG_PREEMPT_RT isn't set. There is no point to allow CONFIG_DEBUG_RWSEMS to be set in a kernel configuration where CONFIG_PREEMPT_RT is also set. Make them mutually exclusive. Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d566c78 commit f22f713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Kconfig.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ config PROVE_LOCKING
13031303
select DEBUG_SPINLOCK
13041304
select DEBUG_MUTEXES if !PREEMPT_RT
13051305
select DEBUG_RT_MUTEXES if RT_MUTEXES
1306-
select DEBUG_RWSEMS
1306+
select DEBUG_RWSEMS if !PREEMPT_RT
13071307
select DEBUG_WW_MUTEX_SLOWPATH
13081308
select DEBUG_LOCK_ALLOC
13091309
select PREEMPT_COUNT if !ARCH_NO_PREEMPT
@@ -1426,7 +1426,7 @@ config DEBUG_WW_MUTEX_SLOWPATH
14261426

14271427
config DEBUG_RWSEMS
14281428
bool "RW Semaphore debugging: basic checks"
1429-
depends on DEBUG_KERNEL
1429+
depends on DEBUG_KERNEL && !PREEMPT_RT
14301430
help
14311431
This debugging feature allows mismatched rw semaphore locks
14321432
and unlocks to be detected and reported.

0 commit comments

Comments
 (0)