linux/kernel/locking
Thomas Gleixner 401bec21e8 rtmutex: Cleanup deadlock detector debug logic
upstream commit: 8930ed80f9

The conditions under which deadlock detection is conducted are unclear
and undocumented.

Add constants instead of using 0/1 and provide a selection function
which hides the additional debug dependency from the calling code.

Add comments where needed.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Link: http://lkml.kernel.org/r/20140522031949.947264874@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Conflicts:
	kernel/locking/rtmutex.c
2020-10-14 00:59:24 +03:00
..
Makefile rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00
lglock.c stomp-machine: create lg_global_trylock_relax() primitive 2020-10-14 00:59:18 +03:00
lockdep.c lockdep-rt.patch 2020-10-14 00:59:15 +03:00
lockdep_internals.h locking: Move the lockdep code to kernel/locking/ 2013-11-06 07:55:08 +01:00
lockdep_proc.c lockdep/proc: Fix lock-time avg computation 2013-11-11 12:41:34 +01:00
lockdep_states.h locking: Move the lockdep code to kernel/locking/ 2013-11-06 07:55:08 +01:00
mutex-debug.c mutexes: Give more informative mutex warning in the !lock->owner case 2013-12-17 15:35:10 +01:00
mutex-debug.h locking: Move the mutex code to kernel/locking/ 2013-11-06 07:55:07 +01:00
mutex.c locking/doc: Update references to kernel/mutex.c 2013-11-11 12:41:33 +01:00
mutex.h locking: Move the mutex code to kernel/locking/ 2013-11-06 07:55:07 +01:00
percpu-rwsem.c percpu-rwsem: compile fix 2020-10-14 00:59:17 +03:00
rt.c rtmutex: Confine deadlock logic to futex 2020-10-14 00:59:23 +03:00
rtmutex-debug.c rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex-debug.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex-tester.c rtmutex: Confine deadlock logic to futex 2020-10-14 00:59:23 +03:00
rtmutex.c rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rtmutex_common.h rtmutex: Cleanup deadlock detector debug logic 2020-10-14 00:59:24 +03:00
rwsem-spinlock.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
rwsem-xadd.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
rwsem.c locking: Move the rwsem code to kernel/locking/ 2013-11-06 09:24:18 +01:00
semaphore.c locking: Move the semaphore core to kernel/locking/ 2013-11-06 07:55:22 +01:00
spinlock.c rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00
spinlock_debug.c rt: Add the preempt-rt lock replacement APIs 2020-10-14 00:59:16 +03:00