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 kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-mips
/
fpu.h
diff --git
a/include/asm-mips/fpu.h
b/include/asm-mips/fpu.h
index
6cb38d5
..
b0f5001
100644
(file)
--- a/
include/asm-mips/fpu.h
+++ b/
include/asm-mips/fpu.h
@@
-21,6
+21,10
@@
#include <asm/processor.h>
#include <asm/current.h>
#include <asm/processor.h>
#include <asm/current.h>
+#ifdef CONFIG_MIPS_MT_FPAFF
+#include <asm/mips_mt.h>
+#endif
+
struct sigcontext;
struct sigcontext32;
struct sigcontext;
struct sigcontext32;
@@
-80,9
+84,14
@@
do { \
#define clear_fpu_owner() clear_thread_flag(TIF_USEDFPU)
#define clear_fpu_owner() clear_thread_flag(TIF_USEDFPU)
+static inline int __is_fpu_owner(void)
+{
+ return test_thread_flag(TIF_USEDFPU);
+}
+
static inline int is_fpu_owner(void)
{
static inline int is_fpu_owner(void)
{
- return cpu_has_fpu &&
test_thread_flag(TIF_USEDFPU);
+ return cpu_has_fpu &&
__is_fpu_owner();
}
static inline void own_fpu(void)
}
static inline void own_fpu(void)
@@
-90,7
+99,7
@@
static inline void own_fpu(void)
if (cpu_has_fpu) {
__enable_fpu();
KSTK_STATUS(current) |= ST0_CU1;
if (cpu_has_fpu) {
__enable_fpu();
KSTK_STATUS(current) |= ST0_CU1;
- set_thread_flag(TIF_USEDFPU);
+ set_thread_flag(TIF_USEDFPU);
}
}
}
}
@@
-98,7
+107,7
@@
static inline void lose_fpu(void)
{
if (cpu_has_fpu) {
KSTK_STATUS(current) &= ~ST0_CU1;
{
if (cpu_has_fpu) {
KSTK_STATUS(current) &= ~ST0_CU1;
- clear_thread_flag(TIF_USEDFPU);
+ clear_thread_flag(TIF_USEDFPU);
__disable_fpu();
}
}
__disable_fpu();
}
}
@@
-127,7
+136,7
@@
static inline void restore_fp(struct task_struct *tsk)
static inline fpureg_t *get_fpu_regs(struct task_struct *tsk)
{
if (cpu_has_fpu) {
static inline fpureg_t *get_fpu_regs(struct task_struct *tsk)
{
if (cpu_has_fpu) {
- if ((tsk == current) &&
is_fpu_owner())
+ if ((tsk == current) &&
__is_fpu_owner())
_save_fp(current);
return tsk->thread.fpu.hard.fpr;
}
_save_fp(current);
return tsk->thread.fpu.hard.fpr;
}