Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Update Kconfig + Makefile to prepare for server doorbells

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>

authored by

Ian Munsie and committed by
Benjamin Herrenschmidt
440bc685 fe9e1d54

+8 -2
+2 -2
arch/powerpc/kernel/Makefile
··· 75 75 obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o 76 76 obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o 77 77 obj-$(CONFIG_44x) += cpu_setup_44x.o 78 - obj-$(CONFIG_PPC_FSL_BOOK3E) += cpu_setup_fsl_booke.o dbell.o 79 - obj-$(CONFIG_PPC_BOOK3E_64) += dbell.o 78 + obj-$(CONFIG_PPC_FSL_BOOK3E) += cpu_setup_fsl_booke.o 79 + obj-$(CONFIG_PPC_DOORBELL) += dbell.o 80 80 obj-$(CONFIG_JUMP_LABEL) += jump_label.o 81 81 82 82 extra-y := head_$(CONFIG_WORD_SIZE).o
+6
arch/powerpc/platforms/Kconfig.cputype
··· 76 76 bool "Embedded processors" 77 77 select PPC_FPU # Make it a choice ? 78 78 select PPC_SMP_MUXED_IPI 79 + select PPC_DOORBELL 79 80 80 81 endchoice 81 82 ··· 209 208 select FSL_EMB_PERFMON 210 209 select PPC_SMP_MUXED_IPI 211 210 select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64 211 + select PPC_DOORBELL 212 212 default y if FSL_BOOKE 213 213 214 214 config PTE_64BIT ··· 383 381 384 382 config CHECK_CACHE_COHERENCY 385 383 bool 384 + 385 + config PPC_DOORBELL 386 + bool 387 + default n 386 388 387 389 endmenu