diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2016-08-25 23:12:22 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2016-09-26 12:02:58 +1000 |
commit | cbd5b982f6a1540ebb0144774d64381e7b2d39fd (patch) | |
tree | 75d26823fb8bfd1d4120b4b83adcfd7c3818ef0e /arch/m68k/coldfire/head.S | |
parent | 81d33350bab8b6889ac0f9c98bce58128be1c72d (diff) | |
download | linux-cbd5b982f6a1540ebb0144774d64381e7b2d39fd.tar.gz linux-cbd5b982f6a1540ebb0144774d64381e7b2d39fd.tar.bz2 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/coldfire/head.S')
-rw-r--r-- | arch/m68k/coldfire/head.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/coldfire/head.S b/arch/m68k/coldfire/head.S index 4ba5d5628067..bdb472c48401 100644 --- a/arch/m68k/coldfire/head.S +++ b/arch/m68k/coldfire/head.S @@ -280,8 +280,8 @@ _clear_bss: movel %d0,m68k_cputype /* Mark us as a ColdFire */ movel #MMU_COLDFIRE,%d0 movel %d0,m68k_mmutype - movel #FPU_COLDFIRE,%d0 - movel %d0,m68k_fputype + movel #FPUTYPE,%d0 + movel %d0,m68k_fputype /* Mark FPU type */ movel #MACHINE,%d0 movel %d0,m68k_machtype /* Mark machine type */ lea init_task,%a2 /* Set "current" init task */ |