x86/fpu: Rename user_has_fpu() to fpregs_active()
authorIngo Molnar <mingo@kernel.org>
Tue, 28 Apr 2015 10:28:08 +0000 (12:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:02 +0000 (15:48 +0200)
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>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/xstate.c
arch/x86/kvm/vmx.c
drivers/lguest/x86/core.c

index 58c274d..0f17cd4 100644 (file)
@@ -358,7 +358,7 @@ static inline void __fpregs_activate(struct fpu *fpu)
  * to save the FP state - we'll just take a #NM
  * fault and get the FPU access back.
  */
-static inline int user_has_fpu(void)
+static inline int fpregs_active(void)
 {
        return current->thread.fpu.fpregs_active;
 }
@@ -557,7 +557,7 @@ static inline void user_fpu_begin(void)
        struct fpu *fpu = &current->thread.fpu;
 
        preempt_disable();
-       if (!user_has_fpu())
+       if (!fpregs_active())
                fpregs_activate(fpu);
        preempt_enable();
 }
index 2863882..b8e5fee 100644 (file)
@@ -310,7 +310,7 @@ int copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size)
                        sizeof(struct user_i387_ia32_struct), NULL,
                        (struct _fpstate_ia32 __user *) buf) ? -1 : 1;
 
-       if (user_has_fpu()) {
+       if (fpregs_active()) {
                /* Save the live register state to the user directly. */
                if (copy_fpregs_to_sigframe(buf_fx))
                        return -1;
Simple merge
Simple merge