From 1679f2710ac58df580d3716fab1f42ae50a226eb Mon Sep 17 00:00:00 2001 From: Suresh Siddha Date: Wed, 16 Apr 2008 10:27:53 +0200 Subject: [PATCH] x86: fpu xstate split cleanup Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- arch/x86/kernel/process.c | 3 +-- 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 0e613e7e7b..3004d71653 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) } } - void free_thread_info(struct thread_info *ti) { free_thread_xstate(ti->task); - free_pages((unsigned long)(ti), get_order(THREAD_SIZE)); + free_pages((unsigned long)ti, get_order(THREAD_SIZE)); } void arch_task_cache_init(void) diff --git a/include/asm-x86/i387.h b/include/asm-x86/i387.h index 4be7b58b1e..da2adb45f6 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) if (cpu_has_fxsr) { return tsk->thread.xstate->fxsave.cwd; } else { - return (unsigned short) tsk->thread.xstate->fsave.cwd; + return (unsigned short)tsk->thread.xstate->fsave.cwd; } } @@ -337,7 +337,7 @@ static inline unsigned short get_fpu_swd(struct task_struct *tsk) if (cpu_has_fxsr) { return tsk->thread.xstate->fxsave.swd; } else { - return (unsigned short) tsk->thread.xstate->fsave.swd; + return (unsigned short)tsk->thread.xstate->fsave.swd; } } -- 2.39.5