diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-04-16 04:27:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:55 -0400 |
commit | 1679f2710ac58df580d3716fab1f42ae50a226eb (patch) | |
tree | b7ac7e16814d0039a963ab2ee35d7850e9e347a1 | |
parent | aa283f49276e7d840a40fb01eee6de97eaa7e012 (diff) |
x86: fpu xstate split cleanup
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/process.c | 3 | ||||
-rw-r--r-- | include/asm-x86/i387.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 0e613e7e7b5e..3004d716539d 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -29,11 +29,10 @@ void free_thread_xstate(struct task_struct *tsk) | |||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | |||
33 | void free_thread_info(struct thread_info *ti) | 32 | void free_thread_info(struct thread_info *ti) |
34 | { | 33 | { |
35 | free_thread_xstate(ti->task); | 34 | free_thread_xstate(ti->task); |
36 | free_pages((unsigned long)(ti), get_order(THREAD_SIZE)); | 35 | free_pages((unsigned long)ti, get_order(THREAD_SIZE)); |
37 | } | 36 | } |
38 | 37 | ||
39 | void arch_task_cache_init(void) | 38 | void arch_task_cache_init(void) |
diff --git a/include/asm-x86/i387.h b/include/asm-x86/i387.h index 4be7b58b1e16..da2adb45f6e3 100644 --- a/include/asm-x86/i387.h +++ b/include/asm-x86/i387.h | |||
@@ -328,7 +328,7 @@ static inline unsigned short get_fpu_cwd(struct task_struct *tsk) | |||
328 | if (cpu_has_fxsr) { | 328 | if (cpu_has_fxsr) { |
329 | return tsk->thread.xstate->fxsave.cwd; | 329 | return tsk->thread.xstate->fxsave.cwd; |
330 | } else { | 330 | } else { |
331 | return (unsigned short) tsk->thread.xstate->fsave.cwd; | 331 | return (unsigned short)tsk->thread.xstate->fsave.cwd; |
332 | } | 332 | } |
333 | } | 333 | } |
334 | 334 | ||
@@ -337,7 +337,7 @@ static inline unsigned short get_fpu_swd(struct task_struct *tsk) | |||
337 | if (cpu_has_fxsr) { | 337 | if (cpu_has_fxsr) { |
338 | return tsk->thread.xstate->fxsave.swd; | 338 | return tsk->thread.xstate->fxsave.swd; |
339 | } else { | 339 | } else { |
340 | return (unsigned short) tsk->thread.xstate->fsave.swd; | 340 | return (unsigned short)tsk->thread.xstate->fsave.swd; |
341 | } | 341 | } |
342 | } | 342 | } |
343 | 343 | ||