diff options
author | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
commit | 3d5271f9883cba7b54762bc4fe027d4172f06db7 (patch) | |
tree | ab8a881a14478598a0c8bda0d26c62cdccfffd6d /include/asm-mips/fpu.h | |
parent | 378b2556f4e09fa6f87ff0cb5c4395ff28257d02 (diff) | |
parent | 9115a6c787596e687df03010d97fccc5e0762506 (diff) |
Pull release into acpica branch
Diffstat (limited to 'include/asm-mips/fpu.h')
-rw-r--r-- | include/asm-mips/fpu.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asm-mips/fpu.h b/include/asm-mips/fpu.h index ea24e733b1bc..9c828b1f8218 100644 --- a/include/asm-mips/fpu.h +++ b/include/asm-mips/fpu.h | |||
@@ -80,9 +80,14 @@ do { \ | |||
80 | 80 | ||
81 | #define clear_fpu_owner() clear_thread_flag(TIF_USEDFPU) | 81 | #define clear_fpu_owner() clear_thread_flag(TIF_USEDFPU) |
82 | 82 | ||
83 | static inline int __is_fpu_owner(void) | ||
84 | { | ||
85 | return test_thread_flag(TIF_USEDFPU); | ||
86 | } | ||
87 | |||
83 | static inline int is_fpu_owner(void) | 88 | static inline int is_fpu_owner(void) |
84 | { | 89 | { |
85 | return cpu_has_fpu && test_thread_flag(TIF_USEDFPU); | 90 | return cpu_has_fpu && __is_fpu_owner(); |
86 | } | 91 | } |
87 | 92 | ||
88 | static inline void own_fpu(void) | 93 | static inline void own_fpu(void) |
@@ -127,7 +132,7 @@ static inline void restore_fp(struct task_struct *tsk) | |||
127 | static inline fpureg_t *get_fpu_regs(struct task_struct *tsk) | 132 | static inline fpureg_t *get_fpu_regs(struct task_struct *tsk) |
128 | { | 133 | { |
129 | if (cpu_has_fpu) { | 134 | if (cpu_has_fpu) { |
130 | if ((tsk == current) && is_fpu_owner()) | 135 | if ((tsk == current) && __is_fpu_owner()) |
131 | _save_fp(current); | 136 | _save_fp(current); |
132 | return tsk->thread.fpu.hard.fpr; | 137 | return tsk->thread.fpu.hard.fpr; |
133 | } | 138 | } |