From f199c752995e947610fa75c2828739347d9051ba Mon Sep 17 00:00:00 2001 From: "Keith M. Wesolowski" Date: Sat, 21 Feb 2004 19:16:00 -0800 Subject: [PATCH] [SPARC32]: Remove use of PF_USEDFPU --- arch/sparc/kernel/process.c | 16 ++++++++-------- arch/sparc/kernel/traps.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index 7e6c60d507753..867c2f25f7500 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c @@ -346,7 +346,7 @@ void exit_thread(void) #ifndef CONFIG_SMP if(last_task_used_math == current) { #else - if(current->flags & PF_USEDFPU) { + if(current_thread_info()->flags & _TIF_USEDFPU) { #endif /* Keep process from leaving FPU in a bogon state. */ put_psr(get_psr() | PSR_EF); @@ -355,7 +355,7 @@ void exit_thread(void) #ifndef CONFIG_SMP last_task_used_math = NULL; #else - current->flags &= ~PF_USEDFPU; + current_thread_info()->flags &= ~_TIF_USEDFPU; #endif } } @@ -369,7 +369,7 @@ void flush_thread(void) #ifndef CONFIG_SMP if(last_task_used_math == current) { #else - if(current->flags & PF_USEDFPU) { + if(current_thread_info()->flags & _TIF_USEDFPU) { #endif /* Clean the fpu. */ put_psr(get_psr() | PSR_EF); @@ -378,7 +378,7 @@ void flush_thread(void) #ifndef CONFIG_SMP last_task_used_math = NULL; #else - current->flags &= ~PF_USEDFPU; + current_thread_info()->flags &= ~_TIF_USEDFPU; #endif } @@ -459,13 +459,13 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp, #ifndef CONFIG_SMP if(last_task_used_math == current) { #else - if(current->flags & PF_USEDFPU) { + if(current_thread_info()->flags & _TIF_USEDFPU) { #endif put_psr(get_psr() | PSR_EF); fpsave(&p->thread.float_regs[0], &p->thread.fsr, &p->thread.fpqueue[0], &p->thread.fpqdepth); #ifdef CONFIG_SMP - current->flags &= ~PF_USEDFPU; + current_thread_info()->flags &= ~_TIF_USEDFPU; #endif } @@ -597,13 +597,13 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs) return 1; } #ifdef CONFIG_SMP - if (current->flags & PF_USEDFPU) { + if (current_thread_info()->flags & _TIF_USEDFPU) { put_psr(get_psr() | PSR_EF); fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); if (regs != NULL) { regs->psr &= ~(PSR_EF); - current->flags &= ~(PF_USEDFPU); + current_thread_info()->flags &= ~(_TIF_USEDFPU); } } #else diff --git a/arch/sparc/kernel/traps.c b/arch/sparc/kernel/traps.c index b7eb4fffa9746..6a31aa439c6ba 100644 --- a/arch/sparc/kernel/traps.c +++ b/arch/sparc/kernel/traps.c @@ -260,7 +260,7 @@ void do_fpd_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, } else { fpload(¤t->thread.float_regs[0], ¤t->thread.fsr); } - current->flags |= PF_USEDFPU; + current_thread_info()->flags |= _TIF_USEDFPU; #endif } @@ -291,7 +291,7 @@ void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, #ifndef CONFIG_SMP if(!fpt) { #else - if(!(fpt->flags & PF_USEDFPU)) { + if(!(fpt->thread_info->flags & _TIF_USEDFPU)) { #endif fpsave(&fake_regs[0], &fake_fsr, &fake_queue[0], &fake_depth); regs->psr &= ~PSR_EF; @@ -334,7 +334,7 @@ void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, /* nope, better SIGFPE the offending process... */ #ifdef CONFIG_SMP - fpt->flags &= ~PF_USEDFPU; + fpt->thread_info->flags &= ~_TIF_USEDFPU; #endif if(psr & PSR_PS) { /* The first fsr store/load we tried trapped, -- 2.53.0