Linux 5.4.80
[linux/fpc-iii.git] / kernel / locking / Makefile
blob45452facff3b43f15ca0b41b31a7303d656bc605
1 # SPDX-License-Identifier: GPL-2.0
2 # Any varying coverage in these files is non-deterministic
3 # and is generally not a function of system call inputs.
4 KCOV_INSTRUMENT := n
6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
8 ifdef CONFIG_FUNCTION_TRACER
9 CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
10 CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
11 CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
12 CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
13 endif
15 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
16 obj-$(CONFIG_LOCKDEP) += lockdep.o
17 ifeq ($(CONFIG_PROC_FS),y)
18 obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
19 endif
20 obj-$(CONFIG_SMP) += spinlock.o
21 obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o
22 obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
23 obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o
24 obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
25 obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
26 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
27 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
28 obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
29 obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o
30 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
31 obj-$(CONFIG_LOCK_EVENT_COUNTS) += lock_events.o