git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-mips
/
fpu.h
diff --git
a/include/asm-mips/fpu.h
b/include/asm-mips/fpu.h
index
b0f5001
..
efef843
100644
(file)
--- a/
include/asm-mips/fpu.h
+++ b/
include/asm-mips/fpu.h
@@
-10,7
+10,6
@@
#ifndef _ASM_FPU_H
#define _ASM_FPU_H
#ifndef _ASM_FPU_H
#define _ASM_FPU_H
-#include <linux/config.h>
#include <linux/sched.h>
#include <linux/thread_info.h>
#include <linux/sched.h>
#include <linux/thread_info.h>
@@
-135,13
+134,14
@@
static inline void restore_fp(struct task_struct *tsk)
static inline fpureg_t *get_fpu_regs(struct task_struct *tsk)
{
static inline fpureg_t *get_fpu_regs(struct task_struct *tsk)
{
- if (cpu_has_fpu) {
- if ((tsk == current) && __is_fpu_owner())
+ if (tsk == current) {
+ preempt_disable();
+ if (is_fpu_owner())
_save_fp(current);
_save_fp(current);
-
return tsk->thread.fpu.hard.fpr
;
+
preempt_enable()
;
}
}
- return tsk->thread.fpu.
soft.
fpr;
+ return tsk->thread.fpu.fpr;
}
#endif /* _ASM_FPU_H */
}
#endif /* _ASM_FPU_H */