diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-28 06:28:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 09:48:02 -0400 |
commit | 3c6dffa93be9f82f2566dcc948285d6f79fb9ce2 (patch) | |
tree | 755c2481ad98ab4deb3e97283f22e62fb049f4dc /drivers/lguest | |
parent | be7436d519970365775d3d2d7b73e75c233e1994 (diff) |
x86/fpu: Rename user_has_fpu() to fpregs_active()
Rename this function in line with the new FPU nomenclature.
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/x86/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index b80e4b8c9b6e..99bb3009e2d5 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c | |||
@@ -251,7 +251,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu) | |||
251 | * we set it now, so we can trap and pass that trap to the Guest if it | 251 | * we set it now, so we can trap and pass that trap to the Guest if it |
252 | * uses the FPU. | 252 | * uses the FPU. |
253 | */ | 253 | */ |
254 | if (cpu->ts && user_has_fpu()) | 254 | if (cpu->ts && fpregs_active()) |
255 | stts(); | 255 | stts(); |
256 | 256 | ||
257 | /* | 257 | /* |
@@ -283,7 +283,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu) | |||
283 | wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0); | 283 | wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0); |
284 | 284 | ||
285 | /* Clear the host TS bit if it was set above. */ | 285 | /* Clear the host TS bit if it was set above. */ |
286 | if (cpu->ts && user_has_fpu()) | 286 | if (cpu->ts && fpregs_active()) |
287 | clts(); | 287 | clts(); |
288 | 288 | ||
289 | /* | 289 | /* |
@@ -301,7 +301,7 @@ void lguest_arch_run_guest(struct lg_cpu *cpu) | |||
301 | * a different CPU. So all the critical stuff should be done | 301 | * a different CPU. So all the critical stuff should be done |
302 | * before this. | 302 | * before this. |
303 | */ | 303 | */ |
304 | else if (cpu->regs->trapnum == 7 && !user_has_fpu()) | 304 | else if (cpu->regs->trapnum == 7 && !fpregs_active()) |
305 | fpu__restore(); | 305 | fpu__restore(); |
306 | } | 306 | } |
307 | 307 | ||