summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/loongson-3/cop2-ex.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/loongson/loongson-3/cop2-ex.c')
-rw-r--r--arch/mips/loongson/loongson-3/cop2-ex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson/loongson-3/cop2-ex.c b/arch/mips/loongson/loongson-3/cop2-ex.c
index b03e37d2071a..ea13764d0a03 100644
--- a/arch/mips/loongson/loongson-3/cop2-ex.c
+++ b/arch/mips/loongson/loongson-3/cop2-ex.c
@@ -43,7 +43,7 @@ static int loongson_cu2_call(struct notifier_block *nfb, unsigned long action,
if (!fpu_owned) {
set_thread_flag(TIF_USEDFPU);
if (!used_math()) {
- _init_fpu();
+ _init_fpu(current->thread.fpu.fcr31);
set_used_math();
} else
_restore_fp(current);