x86: split spinlock implementations out into their own files
[firefly-linux-kernel-4.4.55.git] / arch / x86 / xen / Makefile
index 59c1e539aed28b9d2c8395671be4a459097df7e7..5bfee243cf9ad18954a6d602af4f8af3d92d3de3 100644 (file)
@@ -1,4 +1,10 @@
+ifdef CONFIG_FTRACE
+# Do not profile debug and lowlevel utilities
+CFLAGS_REMOVE_spinlock.o = -pg
+CFLAGS_REMOVE_time.o = -pg
+endif
+
 obj-y          := enlighten.o setup.o multicalls.o mmu.o \
                        time.o xen-asm_$(BITS).o grant-table.o suspend.o
 
-obj-$(CONFIG_SMP)      += smp.o
+obj-$(CONFIG_SMP)      += smp.o spinlock.o