aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-10-13 04:17:07 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2015-10-19 04:51:18 -0400
commitbed08b7e1fa41eac214acb17b7aa20a0e5c4b4e6 (patch)
treec60f9697982e3f33bb766a982dc8c268f620c4bb
parent39fcfb911c3862f1366ef84efbea10aff59421c2 (diff)
powerpc/cell: Drop CONFIG_TUNE_CELL in favour of CONFIG_CELL_CPU
The TUNE_CELL option allows you to build a kernel that runs on multiple CPUs but is tuned (ie. optimised) to run on Cell CPUs. Now days no one is building a distro in that fashion, and any users who are building custom kernels for their Cell machines are better off building with CONFIG_CELL_CPU, which builds a kernel that only runs on Cell and therefore can be optimised even more aggresively. Dropping the option also avoids confusing other users, who are presented with an option to tune for Cell when they are not building for a Cell CPU at all. Suggested-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/Makefile2
-rw-r--r--arch/powerpc/configs/cell_defconfig2
-rw-r--r--arch/powerpc/configs/ps3_defconfig2
-rw-r--r--arch/powerpc/platforms/Kconfig.cputype11
4 files changed, 2 insertions, 15 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 3704db45a832..96efd8213c1c 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -157,8 +157,6 @@ CFLAGS-$(CONFIG_E500) += $(call cc-option,-mcpu=8540 -msoft-float,-mcpu=powerpc)
157endif 157endif
158endif 158endif
159 159
160CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
161
162asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) 160asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1)
163 161
164KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr) 162KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr)
diff --git a/arch/powerpc/configs/cell_defconfig b/arch/powerpc/configs/cell_defconfig
index 9227b517560a..db328e618bb9 100644
--- a/arch/powerpc/configs/cell_defconfig
+++ b/arch/powerpc/configs/cell_defconfig
@@ -1,5 +1,5 @@
1CONFIG_PPC64=y 1CONFIG_PPC64=y
2CONFIG_TUNE_CELL=y 2CONFIG_CELL_CPU=y
3CONFIG_ALTIVEC=y 3CONFIG_ALTIVEC=y
4CONFIG_SMP=y 4CONFIG_SMP=y
5CONFIG_NR_CPUS=4 5CONFIG_NR_CPUS=4
diff --git a/arch/powerpc/configs/ps3_defconfig b/arch/powerpc/configs/ps3_defconfig
index 683b4c301feb..c40046074f8b 100644
--- a/arch/powerpc/configs/ps3_defconfig
+++ b/arch/powerpc/configs/ps3_defconfig
@@ -1,5 +1,5 @@
1CONFIG_PPC64=y 1CONFIG_PPC64=y
2CONFIG_TUNE_CELL=y 2CONFIG_CELL_CPU=y
3CONFIG_ALTIVEC=y 3CONFIG_ALTIVEC=y
4CONFIG_SMP=y 4CONFIG_SMP=y
5CONFIG_NR_CPUS=2 5CONFIG_NR_CPUS=2
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index c140e94c7c72..142dff5e96d6 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -147,17 +147,6 @@ config 6xx
147 depends on PPC32 && PPC_BOOK3S 147 depends on PPC32 && PPC_BOOK3S
148 select PPC_HAVE_PMU_SUPPORT 148 select PPC_HAVE_PMU_SUPPORT
149 149
150config TUNE_CELL
151 bool "Optimize for Cell Broadband Engine"
152 depends on PPC64 && PPC_BOOK3S
153 help
154 Cause the compiler to optimize for the PPE of the Cell Broadband
155 Engine. This will make the code run considerably faster on Cell
156 but somewhat slower on other machines. This option only changes
157 the scheduling of instructions, not the selection of instructions
158 itself, so the resulting kernel will keep running on all other
159 machines.
160
161# this is temp to handle compat with arch=ppc 150# this is temp to handle compat with arch=ppc
162config 8xx 151config 8xx
163 bool 152 bool