From: Andrew Morton Date: Wed, 14 Jan 2009 17:35:44 +0000 (-0800) Subject: kernel/up.c: omit it if SMP=y, USE_GENERIC_SMP_HELPERS=n X-Git-Tag: 2.1b_release~14362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9316fcacb89c59fe556c48587ac02cd7f5d38045;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git kernel/up.c: omit it if SMP=y, USE_GENERIC_SMP_HELPERS=n Fix the sparc build - we were including `up.o' on SMP builds, when CONFIG_USE_GENERIC_SMP_HELPERS=n. Tested-by: Robert Reif Fixed-by: Robert Reif Cc: David Miller Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/Makefile b/kernel/Makefile index 2aebc4c..170a921 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -40,9 +40,8 @@ obj-$(CONFIG_RT_MUTEXES) += rtmutex.o obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o -ifeq ($(CONFIG_USE_GENERIC_SMP_HELPERS),y) -obj-y += smp.o -else +obj-$(CONFIG_USE_GENERIC_SMP_HELPERS) += smp.o +ifneq ($(CONFIG_SMP),y) obj-y += up.o endif obj-$(CONFIG_SMP) += spinlock.o