x86: fpu xstate split cleanup
authorSuresh Siddha <suresh.b.siddha@intel.com>
Wed, 16 Apr 2008 08:27:53 +0000 (10:27 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:55 +0000 (19:19 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process.c
include/asm-x86/i387.h

index 0e613e7e7b5ec3bff1357baabb3bbb24452c48fe..3004d716539dde2b882acd4e0576676531382965 100644 (file)
@@ -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)
index 4be7b58b1e16ca34f85851ffa2a828e0e6313836..da2adb45f6e3949476ac0a4d2c1aa1cbb2024986 100644 (file)
@@ -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;
        }
 }