blob: 8541bfdfd232bb4213629f265cbb68a6bfb50c72 [file] [log] [blame]
Peter Zijlstra01768b42013-10-31 18:11:53 +01001
Josh Triplett64b47e82014-04-07 15:39:45 -07002obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o
Peter Zijlstra01768b42013-10-31 18:11:53 +01003
4ifdef CONFIG_FUNCTION_TRACER
Peter Zijlstra8eddac32013-10-31 18:14:17 +01005CFLAGS_REMOVE_lockdep.o = -pg
6CFLAGS_REMOVE_lockdep_proc.o = -pg
Peter Zijlstra01768b42013-10-31 18:11:53 +01007CFLAGS_REMOVE_mutex-debug.o = -pg
8CFLAGS_REMOVE_rtmutex-debug.o = -pg
9endif
10
11obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Peter Zijlstra8eddac32013-10-31 18:14:17 +010012obj-$(CONFIG_LOCKDEP) += lockdep.o
13ifeq ($(CONFIG_PROC_FS),y)
14obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
15endif
Peter Zijlstra60fc2872013-10-31 18:15:36 +010016obj-$(CONFIG_SMP) += spinlock.o
Josh Triplett64b47e82014-04-07 15:39:45 -070017obj-$(CONFIG_SMP) += lglock.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010018obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
Peter Zijlstra1696a8b2013-10-31 18:18:19 +010019obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
20obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
21obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
Peter Zijlstra60fc2872013-10-31 18:15:36 +010022obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
23obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
Peter Zijlstraed428bf2013-10-31 18:19:28 +010024obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
Peter Zijlstra32cf7c32013-11-04 18:05:09 +010025obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
26obj-$(CONFIG_PERCPU_RWSEM) += percpu-rwsem.o
Waiman Long70af2f82014-02-03 13:18:49 +010027obj-$(CONFIG_QUEUE_RWLOCK) += qrwlock.o
Paul E. McKenney0af3fe12014-02-04 15:51:41 -080028obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o