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

powerpc: Add POWER8 CPU selection

This allows the user to build a kernel targeted at POWER8
(ie gcc -mcpu=power8).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Anton Blanchard and committed by
Michael Ellerman
ff2e466a e36d1227

+5
+1
arch/powerpc/Makefile
··· 135 135 CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5) 136 136 CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6) 137 137 CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7) 138 + CFLAGS-$(CONFIG_POWER8_CPU) += $(call cc-option,-mcpu=power8) 138 139 139 140 # Altivec option not allowed with e500mc64 in GCC. 140 141 ifeq ($(CONFIG_ALTIVEC),y)
+4
arch/powerpc/platforms/Kconfig.cputype
··· 117 117 bool "POWER7" 118 118 depends on PPC_BOOK3S_64 119 119 120 + config POWER8_CPU 121 + bool "POWER8" 122 + depends on PPC_BOOK3S_64 123 + 120 124 config E5500_CPU 121 125 bool "Freescale e5500" 122 126 depends on E500