x86/fpu: Rename fpu_free() to fpstate_free()
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 10:55:22 +0000 (12:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:13 +0000 (15:47 +0200)
Use the fpu__*() namespace.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
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/process.c
arch/x86/kvm/x86.c

index 88f584ab3463ea299bd2136d1d65f6dceb4960c1..b68e8f04c38a20d2a2ef7eacdc234665fbb114e9 100644 (file)
@@ -571,7 +571,7 @@ static inline unsigned short get_fpu_mxcsr(struct task_struct *tsk)
 
 extern int fpstate_alloc(struct fpu *fpu);
 
-static inline void fpu_free(struct fpu *fpu)
+static inline void fpstate_free(struct fpu *fpu)
 {
        if (fpu->state) {
                kmem_cache_free(task_xstate_cachep, fpu->state);
index a0ed7c06a12c7dcb20a86eb2b8898782a4c2a80c..fd4aa56335dedf8bcdb9fb728179d18ececec190 100644 (file)
@@ -102,7 +102,7 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
 
 void free_thread_xstate(struct task_struct *tsk)
 {
-       fpu_free(&tsk->thread.fpu);
+       fpstate_free(&tsk->thread.fpu);
 }
 
 void arch_release_task_struct(struct task_struct *tsk)
index 28fa733bb1c6ff07d28f0fa7542fe5793df6f44f..80a411c83083340309fea17853c1cebc32a8b274 100644 (file)
@@ -7029,7 +7029,7 @@ EXPORT_SYMBOL_GPL(fx_init);
 
 static void fx_free(struct kvm_vcpu *vcpu)
 {
-       fpu_free(&vcpu->arch.guest_fpu);
+       fpstate_free(&vcpu->arch.guest_fpu);
 }
 
 void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)