Skip to content

Commit

Permalink
[MIPS] Remove duplicate fpu enable hazard code.
Browse files Browse the repository at this point in the history
Use common code from hazards.h instead.

Signed-off-by: Chris Dearman <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
chrisdearman authored and ralfbaechle committed Jun 6, 2007
1 parent 79894c7 commit f9509c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion arch/mips/kernel/r4k_switch.S
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ LEAF(_init_fpu)
or t0, t1
mtc0 t0, CP0_STATUS
#endif /* CONFIG_MIPS_MT_SMTC */
fpu_enable_hazard
enable_fpu_hazard

li t1, FPU_DEFAULT
ctc1 t1, fcr31
Expand Down
15 changes: 0 additions & 15 deletions include/asm-mips/asmmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@
.endm
#endif /* CONFIG_MIPS_MT_SMTC */

#ifdef CONFIG_CPU_SB1
.macro fpu_enable_hazard
.set push
.set noreorder
.set mips2
SSNOP
bnezl $0, .+4
SSNOP
.set pop
.endm
#else
.macro fpu_enable_hazard
.endm
#endif

/*
* Temporary until all gas have MT ASE support
*/
Expand Down

0 comments on commit f9509c8

Please sign in to comment.