2013-11-01 00:11:53 +07:00
|
|
|
|
2015-08-11 22:26:29 +07:00
|
|
|
obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
|
2013-11-01 00:11:53 +07:00
|
|
|
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
2015-01-09 19:06:33 +07:00
|
|
|
CFLAGS_REMOVE_lockdep.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_lockdep_proc.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_mutex-debug.o = $(CC_FLAGS_FTRACE)
|
|
|
|
CFLAGS_REMOVE_rtmutex-debug.o = $(CC_FLAGS_FTRACE)
|
2013-11-01 00:11:53 +07:00
|
|
|
endif
|
|
|
|
|
|
|
|
obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
2013-11-01 00:14:17 +07:00
|
|
|
obj-$(CONFIG_LOCKDEP) += lockdep.o
|
|
|
|
ifeq ($(CONFIG_PROC_FS),y)
|
|
|
|
obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
|
|
|
|
endif
|
2013-11-01 00:15:36 +07:00
|
|
|
obj-$(CONFIG_SMP) += spinlock.o
|
2015-01-07 02:45:07 +07:00
|
|
|
obj-$(CONFIG_LOCK_SPIN_ON_OWNER) += osq_lock.o
|
2014-04-08 05:39:45 +07:00
|
|
|
obj-$(CONFIG_SMP) += lglock.o
|
2013-11-01 00:15:36 +07:00
|
|
|
obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
|
2015-05-11 14:47:23 +07:00
|
|
|
obj-$(CONFIG_QUEUED_SPINLOCKS) += qspinlock.o
|
2013-11-01 00:18:19 +07:00
|
|
|
obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
|
|
|
|
obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
|
2013-11-01 00:15:36 +07:00
|
|
|
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
|
|
|
|
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
|
2013-11-01 00:19:28 +07:00
|
|
|
obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
|
2013-11-05 00:05:09 +07:00
|
|
|
obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem-xadd.o
|
2015-05-12 00:57:11 +07:00
|
|
|
obj-$(CONFIG_QUEUED_RWLOCKS) += qrwlock.o
|
2014-02-05 06:51:41 +07:00
|
|
|
obj-$(CONFIG_LOCK_TORTURE_TEST) += locktorture.o
|