Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Remove duplicate fpu enable hazard code.

Use common code from hazards.h instead.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Chris Dearman and committed by
Ralf Baechle
f9509c84 79894c7b

+1 -16
+1 -1
arch/mips/kernel/r4k_switch.S
··· 174 174 or t0, t1 175 175 mtc0 t0, CP0_STATUS 176 176 #endif /* CONFIG_MIPS_MT_SMTC */ 177 - fpu_enable_hazard 177 + enable_fpu_hazard 178 178 179 179 li t1, FPU_DEFAULT 180 180 ctc1 t1, fcr31
-15
include/asm-mips/asmmacro.h
··· 52 52 .endm 53 53 #endif /* CONFIG_MIPS_MT_SMTC */ 54 54 55 - #ifdef CONFIG_CPU_SB1 56 - .macro fpu_enable_hazard 57 - .set push 58 - .set noreorder 59 - .set mips2 60 - SSNOP 61 - bnezl $0, .+4 62 - SSNOP 63 - .set pop 64 - .endm 65 - #else 66 - .macro fpu_enable_hazard 67 - .endm 68 - #endif 69 - 70 55 /* 71 56 * Temporary until all gas have MT ASE support 72 57 */