MIPS: BCM5xxx: Remove dead init_fpu code
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:13:58 +0000 (23:13 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 8 Nov 2018 19:20:57 +0000 (11:20 -0800)
The BMIPS5xxx core_init function contains a call to an init_fpu function
inside an #ifdef whose condition never evaluates true. Remove the dead
code. FPU initialization happens later, primarily when a userland
program attempts to use it.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21018/
Cc: linux-mips@linux-mips.org
arch/mips/kernel/bmips_5xxx_init.S

index adaa82e00f2ba385d002dc39c3bbbbaf82445900..9e422d186a176d37ea1d203ce4d956d58717956b 100644 (file)
@@ -632,12 +632,6 @@ core_init:
        bal     set_zephyr
        nop
 
-#if ENABLE_FPU==1
-       /* initialize the Floating point unit (both TPs) */
-       bal     init_fpu
-       nop
-#endif
-
        /* set low latency memory bus */
        li      a0, 1
        bal     set_llmb