aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-09-15 20:49:14 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-25 09:14:49 -0400
commit423216ed3273dae18c347ce52c5ecc193cfdd4e5 (patch)
tree9f1f095dbd57904697dabd2c463e1decace2faa8 /arch
parentff2e466aa2339238c941dee873e553687e941f3f (diff)
powerpc: Use CONFIG_ARCH_HAS_FAST_MULTIPLIER
I ran some tests to compare hash_64 using shifts and multiplies. The results: POWER6: ~2x slower POWER7: ~2x faster POWER8: ~2x faster Now we have a proper config option, select CONFIG_ARCH_HAS_FAST_MULTIPLIER on POWER7 and POWER8. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/Kconfig.cputype2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 26703be24cf9..35ae7ec392ec 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -116,10 +116,12 @@ config POWER6_CPU
116config POWER7_CPU 116config POWER7_CPU
117 bool "POWER7" 117 bool "POWER7"
118 depends on PPC_BOOK3S_64 118 depends on PPC_BOOK3S_64
119 select ARCH_HAS_FAST_MULTIPLIER
119 120
120config POWER8_CPU 121config POWER8_CPU
121 bool "POWER8" 122 bool "POWER8"
122 depends on PPC_BOOK3S_64 123 depends on PPC_BOOK3S_64
124 select ARCH_HAS_FAST_MULTIPLIER
123 125
124config E5500_CPU 126config E5500_CPU
125 bool "Freescale e5500" 127 bool "Freescale e5500"