2013-10-31 11:11:53 -06:00
|
|
|
|
2014-04-07 16:39:45 -06:00
|
|
|
obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o
|
2013-10-31 11:11:53 -06:00
|
|
|
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2013-10-31 11:14:17 -06:00
|
|
|
CFLAGS_REMOVE_lockdep.o = -pg
|
|
|
|
CFLAGS_REMOVE_lockdep_proc.o = -pg
|
2013-10-31 11:11:53 -06:00
|
|
|
CFLAGS_REMOVE_mutex-debug.o = -pg
|
|
|
|
CFLAGS_REMOVE_rtmutex-debug.o = -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
2013-10-31 11:14:17 -06:00
|
|
|
obj-$(CONFIG_LOCKDEP) += lockdep.o
|
|
|
|
ifeq ($(CONFIG_PROC_FS),y)
|
|
|
|
obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
|
|
|
|
endif
|
2013-10-31 11:15:36 -06:00
|
|
|
obj-$(CONFIG_SMP) += spinlock.o
|
2014-04-07 16:39:45 -06:00
|
|
|
obj-$(CONFIG_SMP) += lglock.o
|
2013-10-31 11:15:36 -06:00
|
|
|
obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
|
2013-10-31 11:18:19 -06:00
|
|
|
obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
|
|
|
|
obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
|
|
|
|
obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
|
2013-10-31 11:15:36 -06:00
|
|
|
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
|
|
|
|
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
|
2013-10-31 11:19:28 -06:00
|
|
|
obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
|
2013-11-04 10:05:09 -07:00
|
|
|
obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
|
|
|
|
obj-$(CONFIG_PERCPU_RWSEM) += percpu-rwsem.o
|
2014-02-03 05:18:49 -07:00
|
|
|
obj-$(CONFIG_QUEUE_RWLOCK) += qrwlock.o
|
2014-02-04 16:51:41 -07:00
|
|
|
obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o
|