Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760397AbcDMLmI (ORCPT ); Wed, 13 Apr 2016 07:42:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:56580 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760381AbcDMLmF (ORCPT ); Wed, 13 Apr 2016 07:42:05 -0400 Date: Wed, 13 Apr 2016 04:41:00 -0700 From: tip-bot for Borislav Petkov Message-ID: Cc: hpa@zytor.com, mingo@kernel.org, torvalds@linux-foundation.org, bp@suse.de, luto@amacapital.net, brgerst@gmail.com, bp@alien8.de, linux-kernel@vger.kernel.org, dvlasenk@redhat.com, peterz@infradead.org, tglx@linutronix.de Reply-To: peterz@infradead.org, tglx@linutronix.de, brgerst@gmail.com, bp@alien8.de, linux-kernel@vger.kernel.org, dvlasenk@redhat.com, torvalds@linux-foundation.org, mingo@kernel.org, bp@suse.de, luto@amacapital.net, hpa@zytor.com In-Reply-To: <1459837795-2588-2-git-send-email-bp@alien8.de> References: <1459837795-2588-2-git-send-email-bp@alien8.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/fpu/regset: Replace static_cpu_has() usage with boot_cpu_has() Git-Commit-ID: 78df526c74a4db696e1e058b9869471937d0773b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1928 Lines: 49 Commit-ID: 78df526c74a4db696e1e058b9869471937d0773b Gitweb: http://git.kernel.org/tip/78df526c74a4db696e1e058b9869471937d0773b Author: Borislav Petkov AuthorDate: Tue, 5 Apr 2016 08:29:50 +0200 Committer: Ingo Molnar CommitDate: Wed, 13 Apr 2016 11:37:42 +0200 x86/fpu/regset: Replace static_cpu_has() usage with boot_cpu_has() fpregs_{g,s}et() are not sizzling-hot paths to justify the need for static_cpu_has(). Use the normal boot_cpu_has() helper. Signed-off-by: Borislav Petkov Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1459837795-2588-2-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar --- arch/x86/kernel/fpu/regset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/fpu/regset.c b/arch/x86/kernel/fpu/regset.c index bc5e76c..81422df 100644 --- a/arch/x86/kernel/fpu/regset.c +++ b/arch/x86/kernel/fpu/regset.c @@ -278,7 +278,7 @@ int fpregs_get(struct task_struct *target, const struct user_regset *regset, fpu__activate_fpstate_read(fpu); - if (!static_cpu_has(X86_FEATURE_FPU)) + if (!boot_cpu_has(X86_FEATURE_FPU)) return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); if (!boot_cpu_has(X86_FEATURE_FXSR)) @@ -309,7 +309,7 @@ int fpregs_set(struct task_struct *target, const struct user_regset *regset, fpu__activate_fpstate_write(fpu); fpstate_sanitize_xstate(fpu); - if (!static_cpu_has(X86_FEATURE_FPU)) + if (!boot_cpu_has(X86_FEATURE_FPU)) return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); if (!boot_cpu_has(X86_FEATURE_FXSR))