diff options
author | Chris Dearman <chris@mips.com> | 2007-05-17 16:36:55 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-06-06 14:34:31 -0400 |
commit | f9509c84d8d9451ecd1731e922e7094b38ee336a (patch) | |
tree | ddb9da06ee6a2ff3af2d2aaeb59cc60203396e26 | |
parent | 79894c7b47f78decaa3511f1d6646aa06e2c6bed (diff) |
[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>
-rw-r--r-- | arch/mips/kernel/r4k_switch.S | 2 | ||||
-rw-r--r-- | include/asm-mips/asmmacro.h | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S index cc566cf12246..06729596812f 100644 --- a/arch/mips/kernel/r4k_switch.S +++ b/arch/mips/kernel/r4k_switch.S | |||
@@ -174,7 +174,7 @@ LEAF(_init_fpu) | |||
174 | or t0, t1 | 174 | or t0, t1 |
175 | mtc0 t0, CP0_STATUS | 175 | mtc0 t0, CP0_STATUS |
176 | #endif /* CONFIG_MIPS_MT_SMTC */ | 176 | #endif /* CONFIG_MIPS_MT_SMTC */ |
177 | fpu_enable_hazard | 177 | enable_fpu_hazard |
178 | 178 | ||
179 | li t1, FPU_DEFAULT | 179 | li t1, FPU_DEFAULT |
180 | ctc1 t1, fcr31 | 180 | ctc1 t1, fcr31 |
diff --git a/include/asm-mips/asmmacro.h b/include/asm-mips/asmmacro.h index 92e62ef711ed..c5f20df780e9 100644 --- a/include/asm-mips/asmmacro.h +++ b/include/asm-mips/asmmacro.h | |||
@@ -52,21 +52,6 @@ | |||
52 | .endm | 52 | .endm |
53 | #endif /* CONFIG_MIPS_MT_SMTC */ | 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 | * Temporary until all gas have MT ASE support | 56 | * Temporary until all gas have MT ASE support |
72 | */ | 57 | */ |