mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
x86: fpu xstate split cleanup
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
aa283f4927
commit
1679f2710a
2 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue