powerpc: Update Kconfig + Makefile to prepare for server doorbells
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 14 Nov 2012 18:49:49 +0000 (18:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 04:09:08 +0000 (15:09 +1100)
Move the rule to build doorbell support out of the Makefile and into a
new Kconfig boolean that platforms can select.

We will add doorbell support to pseries as well in the next patch.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Tested-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/Makefile
arch/powerpc/platforms/Kconfig.cputype

index 8f619342f14c9b64fa03579b12c245ccad7ab489..44fbbea7697aadd085b1b332e60a4a0b3514a2a9 100644 (file)
@@ -75,8 +75,8 @@ endif
 obj64-$(CONFIG_HIBERNATION)    += swsusp_asm64.o
 obj-$(CONFIG_MODULES)          += module.o module_$(CONFIG_WORD_SIZE).o
 obj-$(CONFIG_44x)              += cpu_setup_44x.o
-obj-$(CONFIG_PPC_FSL_BOOK3E)   += cpu_setup_fsl_booke.o dbell.o
-obj-$(CONFIG_PPC_BOOK3E_64)    += dbell.o
+obj-$(CONFIG_PPC_FSL_BOOK3E)   += cpu_setup_fsl_booke.o
+obj-$(CONFIG_PPC_DOORBELL)     += dbell.o
 obj-$(CONFIG_JUMP_LABEL)       += jump_label.o
 
 extra-y                                := head_$(CONFIG_WORD_SIZE).o
index 72afd2888cad7c462d2d9a8a3ac2fb30ee6fd7bf..cea2f09c42418d101c78b445b18c9286a714b53b 100644 (file)
@@ -76,6 +76,7 @@ config PPC_BOOK3E_64
        bool "Embedded processors"
        select PPC_FPU # Make it a choice ?
        select PPC_SMP_MUXED_IPI
+       select PPC_DOORBELL
 
 endchoice
 
@@ -208,6 +209,7 @@ config PPC_FSL_BOOK3E
        select FSL_EMB_PERFMON
        select PPC_SMP_MUXED_IPI
        select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
+       select PPC_DOORBELL
        default y if FSL_BOOKE
 
 config PTE_64BIT
@@ -382,4 +384,8 @@ config NOT_COHERENT_CACHE
 config CHECK_CACHE_COHERENCY
        bool
 
+config PPC_DOORBELL
+       bool
+       default n
+
 endmenu