diff options
author | Brian Gerst <brgerst@gmail.com> | 2010-09-03 21:17:11 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-09-09 17:16:30 -0400 |
commit | bfd946cb891800d408decaae268a3480775178a3 (patch) | |
tree | 9adb468dbaa00ec12934d10b718dde09f0ccd4d2 | |
parent | 51115d4d45700fc7c08306f7ba6e68551f526ae5 (diff) |
x86, fpu: Merge __save_init_fpu()
__save_init_fpu() is identical for 32-bit and 64-bit.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <1283563039-3466-5-git-send-email-brgerst@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/include/asm/i387.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h index 5d8f9a79fa5d..88065e3a03c0 100644 --- a/arch/x86/include/asm/i387.h +++ b/arch/x86/include/asm/i387.h | |||
@@ -197,12 +197,6 @@ static inline void fpu_save_init(struct fpu *fpu) | |||
197 | fpu_clear(fpu); | 197 | fpu_clear(fpu); |
198 | } | 198 | } |
199 | 199 | ||
200 | static inline void __save_init_fpu(struct task_struct *tsk) | ||
201 | { | ||
202 | fpu_save_init(&tsk->thread.fpu); | ||
203 | task_thread_info(tsk)->status &= ~TS_USEDFPU; | ||
204 | } | ||
205 | |||
206 | #else /* CONFIG_X86_32 */ | 200 | #else /* CONFIG_X86_32 */ |
207 | 201 | ||
208 | #ifdef CONFIG_MATH_EMULATION | 202 | #ifdef CONFIG_MATH_EMULATION |
@@ -285,15 +279,14 @@ end: | |||
285 | ; | 279 | ; |
286 | } | 280 | } |
287 | 281 | ||
282 | #endif /* CONFIG_X86_64 */ | ||
283 | |||
288 | static inline void __save_init_fpu(struct task_struct *tsk) | 284 | static inline void __save_init_fpu(struct task_struct *tsk) |
289 | { | 285 | { |
290 | fpu_save_init(&tsk->thread.fpu); | 286 | fpu_save_init(&tsk->thread.fpu); |
291 | task_thread_info(tsk)->status &= ~TS_USEDFPU; | 287 | task_thread_info(tsk)->status &= ~TS_USEDFPU; |
292 | } | 288 | } |
293 | 289 | ||
294 | |||
295 | #endif /* CONFIG_X86_64 */ | ||
296 | |||
297 | static inline int fpu_fxrstor_checking(struct fpu *fpu) | 290 | static inline int fpu_fxrstor_checking(struct fpu *fpu) |
298 | { | 291 | { |
299 | return fxrstor_checking(&fpu->state->fxsave); | 292 | return fxrstor_checking(&fpu->state->fxsave); |