Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 1 | |
Josh Triplett | 64b47e8 | 2014-04-07 15:39:45 -0700 | [diff] [blame] | 2 | obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o |
Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 3 | |
| 4 | ifdef CONFIG_FUNCTION_TRACER |
Peter Zijlstra | 8eddac3 | 2013-10-31 18:14:17 +0100 | [diff] [blame] | 5 | CFLAGS_REMOVE_lockdep.o = -pg |
| 6 | CFLAGS_REMOVE_lockdep_proc.o = -pg |
Peter Zijlstra | 01768b4 | 2013-10-31 18:11:53 +0100 | [diff] [blame] | 7 | CFLAGS_REMOVE_mutex-debug.o = -pg |
| 8 | CFLAGS_REMOVE_rtmutex-debug.o = -pg |
| 9 | endif |
| 10 | |
| 11 | obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o |
Peter Zijlstra | 8eddac3 | 2013-10-31 18:14:17 +0100 | [diff] [blame] | 12 | obj-$(CONFIG_LOCKDEP) += lockdep.o |
| 13 | ifeq ($(CONFIG_PROC_FS),y) |
| 14 | obj-$(CONFIG_LOCKDEP) += lockdep_proc.o |
| 15 | endif |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 16 | obj-$(CONFIG_SMP) += spinlock.o |
Josh Triplett | 64b47e8 | 2014-04-07 15:39:45 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_SMP) += lglock.o |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 18 | obj-$(CONFIG_PROVE_LOCKING) += spinlock.o |
Peter Zijlstra | 1696a8b | 2013-10-31 18:18:19 +0100 | [diff] [blame] | 19 | obj-$(CONFIG_RT_MUTEXES) += rtmutex.o |
| 20 | obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o |
| 21 | obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o |
Peter Zijlstra | 60fc287 | 2013-10-31 18:15:36 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o |
| 23 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o |
Peter Zijlstra | ed428bf | 2013-10-31 18:19:28 +0100 | [diff] [blame] | 24 | obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o |
Peter Zijlstra | 32cf7c3 | 2013-11-04 18:05:09 +0100 | [diff] [blame] | 25 | obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o |
| 26 | obj-$(CONFIG_PERCPU_RWSEM) += percpu-rwsem.o |
Waiman Long | 70af2f8 | 2014-02-03 13:18:49 +0100 | [diff] [blame] | 27 | obj-$(CONFIG_QUEUE_RWLOCK) += qrwlock.o |
Paul E. McKenney | 0af3fe1 | 2014-02-04 15:51:41 -0800 | [diff] [blame] | 28 | obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o |