aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/cpu.c')
-rw-r--r--arch/sparc/kernel/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/cpu.c b/arch/sparc/kernel/cpu.c
index 0dc714fa23d8..7925c54f4133 100644
--- a/arch/sparc/kernel/cpu.c
+++ b/arch/sparc/kernel/cpu.c
@@ -324,7 +324,7 @@ void __cpuinit cpu_probe(void)
324 psr = get_psr(); 324 psr = get_psr();
325 put_psr(psr | PSR_EF); 325 put_psr(psr | PSR_EF);
326#ifdef CONFIG_SPARC_LEON 326#ifdef CONFIG_SPARC_LEON
327 fpu_vers = 7; 327 fpu_vers = get_psr() & PSR_EF ? ((get_fsr() >> 17) & 0x7) : 7;
328#else 328#else
329 fpu_vers = ((get_fsr() >> 17) & 0x7); 329 fpu_vers = ((get_fsr() >> 17) & 0x7);
330#endif 330#endif