aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/m68k/include/asm/m54xxsim.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2016-08-25 23:12:22 +1000
committerGreg Ungerer <gerg@linux-m68k.org>2016-09-26 12:02:58 +1000
commitcbd5b982f6a1540ebb0144774d64381e7b2d39fd (patch)
tree75d26823fb8bfd1d4120b4b83adcfd7c3818ef0e /arch/m68k/include/asm/m54xxsim.h
parentm68k: set appropriate machine type for m5411x SoC platforms (diff)
downloadwireguard-linux-cbd5b982f6a1540ebb0144774d64381e7b2d39fd.tar.xz
wireguard-linux-cbd5b982f6a1540ebb0144774d64381e7b2d39fd.zip
m68k: report correct FPU type on ColdFire MMU platforms
Not all ColdFire SoC parts that have an MMU also have an FPU - so set an FPU type (via m68k_fputype) appropriate for the configured platform. With this set correctly /proc/cpuinfo will report FPU "none" on devices that don't have one. And kernel code paths that initialize FPU hardware will now only execute if an FPU is actually present. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include/asm/m54xxsim.h')
-rw-r--r--arch/m68k/include/asm/m54xxsim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h
index cde03902da24..7dd6cc4bcd72 100644
--- a/arch/m68k/include/asm/m54xxsim.h
+++ b/arch/m68k/include/asm/m54xxsim.h
@@ -9,6 +9,7 @@
#define CPU_INSTR_PER_JIFFY 2
#define MCF_BUSCLK (MCF_CLK / 2)
#define MACHINE MACH_M54XX
+#define FPUTYPE FPU_COLDFIRE
#include <asm/m54xxacr.h>