Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762451AbbEESG4 (ORCPT ); Tue, 5 May 2015 14:06:56 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:37730 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422759AbbEER7h (ORCPT ); Tue, 5 May 2015 13:59:37 -0400 From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Andy Lutomirski , Borislav Petkov , Dave Hansen , Fenghua Yu , "H. Peter Anvin" , Linus Torvalds , Oleg Nesterov , Thomas Gleixner Subject: [PATCH 187/208] x86/fpu: Remove run-once init quirks Date: Tue, 5 May 2015 19:58:11 +0200 Message-Id: <1430848712-28064-27-git-send-email-mingo@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1430848712-28064-1-git-send-email-mingo@kernel.org> References: <1430848712-28064-1-git-send-email-mingo@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2134 Lines: 75 Remove various boot quirks that came from the old code. The new code is cleanly split up into per-system and per-cpu init sequences, and system init functions are only called once. Remove the run-once quirks. Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave Hansen Cc: Fenghua Yu Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- arch/x86/kernel/fpu/init.c | 6 ------ arch/x86/kernel/fpu/xstate.c | 11 ----------- 2 files changed, 17 deletions(-) diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c index 72219ce2385a..7b6265df6082 100644 --- a/arch/x86/kernel/fpu/init.c +++ b/arch/x86/kernel/fpu/init.c @@ -143,12 +143,6 @@ EXPORT_SYMBOL_GPL(xstate_size); */ static void fpu__init_system_xstate_size_legacy(void) { - static bool on_boot_cpu = 1; - - if (!on_boot_cpu) - return; - on_boot_cpu = 0; - /* * Note that xstate_size might be overwriten later during * fpu__init_system_xstate(). diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 59bd35a57afc..8285d4b40763 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c @@ -658,12 +658,6 @@ void setup_xstate_comp(void) */ static void setup_init_fpu_buf(void) { - static int on_boot_cpu = 1; - - if (!on_boot_cpu) - return; - on_boot_cpu = 0; - if (!cpu_has_xsave) return; @@ -719,11 +713,6 @@ static void __init init_xstate_size(void) void fpu__init_system_xstate(void) { unsigned int eax, ebx, ecx, edx; - static bool on_boot_cpu = 1; - - if (!on_boot_cpu) - return; - on_boot_cpu = 0; if (!cpu_has_xsave) { pr_info("x86/fpu: Legacy x87 FPU detected.\n"); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/