Commit 1679f271 authored by Suresh Siddha's avatar Suresh Siddha Committed by Ingo Molnar

x86: fpu xstate split cleanup

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent aa283f49
...@@ -29,11 +29,10 @@ void free_thread_xstate(struct task_struct *tsk) ...@@ -29,11 +29,10 @@ void free_thread_xstate(struct task_struct *tsk)
} }
} }
void free_thread_info(struct thread_info *ti) void free_thread_info(struct thread_info *ti)
{ {
free_thread_xstate(ti->task); 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) void arch_task_cache_init(void)
......
...@@ -328,7 +328,7 @@ static inline unsigned short get_fpu_cwd(struct task_struct *tsk) ...@@ -328,7 +328,7 @@ static inline unsigned short get_fpu_cwd(struct task_struct *tsk)
if (cpu_has_fxsr) { if (cpu_has_fxsr) {
return tsk->thread.xstate->fxsave.cwd; return tsk->thread.xstate->fxsave.cwd;
} else { } 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) ...@@ -337,7 +337,7 @@ static inline unsigned short get_fpu_swd(struct task_struct *tsk)
if (cpu_has_fxsr) { if (cpu_has_fxsr) {
return tsk->thread.xstate->fxsave.swd; return tsk->thread.xstate->fxsave.swd;
} else { } else {
return (unsigned short) tsk->thread.xstate->fsave.swd; return (unsigned short)tsk->thread.xstate->fsave.swd;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment