summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-06-29 21:02:53 +0200
committerClark Williams <williams@redhat.com>2012-01-16 13:00:29 -0600
commit3473f70172d3e2edf1a0f5350d216adc44a21e80 (patch)
tree50aaef79149588daa9a52783fcd69e45963e8e75 /lib
parentea1db690b93aec638953276a6a7cc04f8f23b630 (diff)
rwsem-add-rt-variant.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index a4da283f5dc0..5026c912dbf2 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -37,8 +37,11 @@ obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
+
+ifneq ($(CONFIG_PREEMPT_RT_FULL),y)
lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
+endif
CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS))
obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o