From cbd5b982f6a1540ebb0144774d64381e7b2d39fd Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Thu, 25 Aug 2016 23:12:22 +1000 Subject: 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 --- arch/m68k/include/asm/m54xxsim.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/m68k/include/asm/m54xxsim.h') 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 -- cgit v1.2.3-59-g8ed1b