projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7279b82
)
sparc32/leon: FPU-FSR only available when FPU present
author
Daniel Hellstrom
<daniel@gaisler.com>
Wed, 26 Jan 2011 06:37:05 +0000
(06:37 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 17 Mar 2011 01:19:05 +0000
(18:19 -0700)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/cpu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/cpu.c
b/arch/sparc/kernel/cpu.c
index 0dc714fa23d899d690a004610dad1d9ac8254c6b..7925c54f41330f3003486914e3393f078ccb57d0 100644
(file)
--- a/
arch/sparc/kernel/cpu.c
+++ b/
arch/sparc/kernel/cpu.c
@@
-324,7
+324,7
@@
void __cpuinit cpu_probe(void)
psr = get_psr();
put_psr(psr | PSR_EF);
#ifdef CONFIG_SPARC_LEON
- fpu_vers = 7;
+ fpu_vers =
get_psr() & PSR_EF ? ((get_fsr() >> 17) & 0x7) :
7;
#else
fpu_vers = ((get_fsr() >> 17) & 0x7);
#endif