summaryrefslogtreecommitdiffstats
path: root/arch/m68k/Kconfig.cpu
diff options
context:
space:
mode:
authorGeorge Spelvin2016-05-26 17:36:19 +0200
committerGeorge Spelvin2016-05-28 21:48:57 +0200
commit14c44b95b3dcb8ff1d627e6b78f57c4373d375cb (patch)
treee81c581cdff3075036b99e0dbf2f0c47afe1e6ec /arch/m68k/Kconfig.cpu
parent<linux/hash.h>: Add support for architecture-specific functions (diff)
downloadkernel-qcow2-linux-14c44b95b3dcb8ff1d627e6b78f57c4373d375cb.tar.gz
kernel-qcow2-linux-14c44b95b3dcb8ff1d627e6b78f57c4373d375cb.tar.xz
kernel-qcow2-linux-14c44b95b3dcb8ff1d627e6b78f57c4373d375cb.zip
m68k: Add <asm/hash.h>
This provides a multiply by constant GOLDEN_RATIO_32 = 0x61C88647 for the original mc68000, which lacks a 32x32-bit multiply instruction. Yes, the amount of optimization effort put in is excessive. :-) Shift-add chain found by Yevgen Voronenko's Hcub algorithm at http://spiral.ece.cmu.edu/mcm/gen.html Signed-off-by: George Spelvin <linux@sciencehorizons.net> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Greg Ungerer <gerg@linux-m68k.org> Cc: Andreas Schwab <schwab@linux-m68k.org> Cc: Philippe De Muyter <phdm@macq.eu> Cc: linux-m68k@lists.linux-m68k.org
Diffstat (limited to 'arch/m68k/Kconfig.cpu')
-rw-r--r--arch/m68k/Kconfig.cpu1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/Kconfig.cpu b/arch/m68k/Kconfig.cpu
index 0dfcf1281e9c..bf3de464cf3c 100644
--- a/arch/m68k/Kconfig.cpu
+++ b/arch/m68k/Kconfig.cpu
@@ -40,6 +40,7 @@ config M68000
select CPU_HAS_NO_MULDIV64
select CPU_HAS_NO_UNALIGNED
select GENERIC_CSUM
+ select HAVE_ARCH_HASH
help
The Freescale (was Motorola) 68000 CPU is the first generation of
the well known M68K family of processors. The CPU core as well as