From 26cecd871f7377b5ff78dbc7fd9ed485ad3e8278 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 28 Jun 2003 00:36:51 +0000 Subject: [PATCH] Clear TIF_USEDFPU in copy_thread(). --- arch/mips/kernel/process.c | 1 + arch/mips64/kernel/process.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 9720809e997..92d0836d056 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -127,6 +127,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, p->thread.cp0_status = read_c0_status() & ~(ST0_CU2|ST0_CU1|KU_MASK); childregs->cp0_status &= ~(ST0_CU2|ST0_CU1); + clear_tsk_thread_flag(p, TIF_USEDFPU); p->set_child_tid = p->clear_child_tid = NULL; return 0; diff --git a/arch/mips64/kernel/process.c b/arch/mips64/kernel/process.c index 8f1892c206b..75ee4ee7af0 100644 --- a/arch/mips64/kernel/process.c +++ b/arch/mips64/kernel/process.c @@ -123,6 +123,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, */ p->thread.cp0_status = read_c0_status() & ~(ST0_CU2|ST0_CU1|ST0_KSU); childregs->cp0_status &= ~(ST0_CU2|ST0_CU1); + clear_tsk_thread_flag(p, TIF_USEDFPU); p->set_child_tid = p->clear_child_tid = NULL; return 0; -- 2.11.4.GIT