]> err.no Git - linux-2.6/blobdiff - include/asm-mips/fpu.h
[MIPS] Remove unused definitions from addrspace.h.
[linux-2.6] / include / asm-mips / fpu.h
index 9c828b1f821875e273bdd3da8f9a6b3fcf98e27b..8bf510a27c643889f48476351ea8cc11d9a232ed 100644 (file)
 #include <asm/processor.h>
 #include <asm/current.h>
 
+#ifdef CONFIG_MIPS_MT_FPAFF
+#include <asm/mips_mt.h>
+#endif
+
 struct sigcontext;
 struct sigcontext32;
 
@@ -134,10 +138,9 @@ static inline fpureg_t *get_fpu_regs(struct task_struct *tsk)
        if (cpu_has_fpu) {
                if ((tsk == current) && __is_fpu_owner())
                        _save_fp(current);
-               return tsk->thread.fpu.hard.fpr;
        }
 
-       return tsk->thread.fpu.soft.fpr;
+       return tsk->thread.fpu.fpr;
 }
 
 #endif /* _ASM_FPU_H */