#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);
#ifndef CONFIG_SMP
last_task_used_math = NULL;
#else
- current->flags &= ~PF_USEDFPU;
+ current_thread_info()->flags &= ~_TIF_USEDFPU;
#endif
}
}
#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);
#ifndef CONFIG_SMP
last_task_used_math = NULL;
#else
- current->flags &= ~PF_USEDFPU;
+ current_thread_info()->flags &= ~_TIF_USEDFPU;
#endif
}
#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
}
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
} else {
fpload(¤t->thread.float_regs[0], ¤t->thread.fsr);
}
- current->flags |= PF_USEDFPU;
+ current_thread_info()->flags |= _TIF_USEDFPU;
#endif
}
#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;
/* 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,