mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
x86/fpu: Rename user_has_fpu() to fpregs_active()
Rename this function in line with the new FPU nomenclature. Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Fenghua Yu <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
be7436d519
commit
3c6dffa93b
4 changed files with 7 additions and 7 deletions
|
|
@ -251,7 +251,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu)
|
|||
* we set it now, so we can trap and pass that trap to the Guest if it
|
||||
* uses the FPU.
|
||||
*/
|
||||
if (cpu->ts && user_has_fpu())
|
||||
if (cpu->ts && fpregs_active())
|
||||
stts();
|
||||
|
||||
/*
|
||||
|
|
@ -283,7 +283,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu)
|
|||
wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0);
|
||||
|
||||
/* Clear the host TS bit if it was set above. */
|
||||
if (cpu->ts && user_has_fpu())
|
||||
if (cpu->ts && fpregs_active())
|
||||
clts();
|
||||
|
||||
/*
|
||||
|
|
@ -301,7 +301,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu)
|
|||
* a different CPU. So all the critical stuff should be done
|
||||
* before this.
|
||||
*/
|
||||
else if (cpu->regs->trapnum == 7 && !user_has_fpu())
|
||||
else if (cpu->regs->trapnum == 7 && !fpregs_active())
|
||||
fpu__restore();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue