projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276983f
)
x86/fpu: Change __thread_clear_has_fpu() to 'struct fpu' parameter
author
Ingo Molnar
<
[email protected]
>
Thu, 23 Apr 2015 10:08:58 +0000
(12:08 +0200)
committer
Ingo Molnar
<
[email protected]
>
Tue, 19 May 2015 13:47:22 +0000
(15:47 +0200)
We do this to make the code more readable, and also to be able to eliminate
task_struct usage from most of the FPU code.
Reviewed-by: Borislav Petkov <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Fenghua Yu <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/include/asm/fpu-internal.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/fpu-internal.h
b/arch/x86/include/asm/fpu-internal.h
index c005d1fc12478d7a437fd26c441fba64dbb600bf..94c068b6238ed416a2ee8913eaf01dfff85412be 100644
(file)
--- a/
arch/x86/include/asm/fpu-internal.h
+++ b/
arch/x86/include/asm/fpu-internal.h
@@
-324,9
+324,9
@@
static inline int restore_fpu_checking(struct task_struct *tsk)
}
/* Must be paired with an 'stts' after! */
-static inline void __thread_clear_has_fpu(struct
task_struct *tsk
)
+static inline void __thread_clear_has_fpu(struct
fpu *fpu
)
{
-
tsk->thread.fpu.
has_fpu = 0;
+
fpu->
has_fpu = 0;
this_cpu_write(fpu_owner_task, NULL);
}
@@
-346,7
+346,7
@@
static inline void __thread_set_has_fpu(struct task_struct *tsk)
*/
static inline void __thread_fpu_end(struct task_struct *tsk)
{
- __thread_clear_has_fpu(
tsk
);
+ __thread_clear_has_fpu(
&tsk->thread.fpu
);
if (!use_eager_fpu())
stts();
}