Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1703011ybh; Tue, 14 Jul 2020 05:15:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJOOWYZrpuX5L3I3q9ASHtWFt+D8aKFcNXJC/GLD0jD8s+GgMDY6X3NU8WIQsypq7y1yGX X-Received: by 2002:a05:6402:1544:: with SMTP id p4mr4265445edx.334.1594728937280; Tue, 14 Jul 2020 05:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594728937; cv=none; d=google.com; s=arc-20160816; b=jfnQox3YJS4corCtuH4Z63K61nTCEIhvG5zxpUtdBe2z+JcOEVADgrdnaTol8Lptvo j3Yd5LS82khurU7zj6E49xOYJG+V+h6Eg/Uy5SRshuYuA/UvhcfPaE/eKzTtVYD1NTVR 4rLk3mX8Y5g6tpNj0jCRz51o4EOEujj5lBz+u58ciEZ5dYr7Xi3p+SPylPy2ZMvRFAhX WW5gcG3HSDE8XZWHYudeRC4I0j5GfrwektKjDvA1Bs15tlhWZU2hQIgwDz39BoSYnt0w kRkS8w0QNlm80cb8jQWs0kCeOdflgfslFTkGft4vbBVIU8RJtwv3w244hav3/Ipa0Ssw iswA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KCAMSqnUd4qmzVoE0KtPcOvfK3gQ8dDEUAiF4KmGkS0=; b=pb7XIkWDLEB0oK9GsgIx61WBaHhy6XS0hKdn6kBpUr1vUwJB+YXmO6YvbihK+X4hRE kn3aG/hMELGILcCnOXzaaE0lw7255zAQSD3DQ+lSKYrxhcMRLNrlT8N1UBuoysSiDyXc LfJghbTDstvY4Upp+tuNil+7NmpuH6z/VAxRO7DqfjZnyVVmjCNMWfbqRGx1v4zteeKe tM7xKVuI2T0NvoSv16qBzBPMjpVpQonh97ZD7PjxL/3s0GujLxxgbf8fzKX4iedwfu7r KfU8258RMHpa87nnzjt8ibdP0HA0/X3Va3yMo4+7NZOYug7X6ZorVYBa8uN+LAO++ZTY QNTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si11345940edy.464.2020.07.14.05.15.13; Tue, 14 Jul 2020 05:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbgGNML7 (ORCPT + 99 others); Tue, 14 Jul 2020 08:11:59 -0400 Received: from 8bytes.org ([81.169.241.247]:54694 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728594AbgGNMLV (ORCPT ); Tue, 14 Jul 2020 08:11:21 -0400 Received: from cap.home.8bytes.org (p5b006776.dip0.t-ipconnect.de [91.0.103.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by theia.8bytes.org (Postfix) with ESMTPSA id 41641FEE; Tue, 14 Jul 2020 14:11:12 +0200 (CEST) From: Joerg Roedel To: x86@kernel.org Cc: Joerg Roedel , Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: [PATCH v4 71/75] x86/head/64: Rename start_cpu0 Date: Tue, 14 Jul 2020 14:09:13 +0200 Message-Id: <20200714120917.11253-72-joro@8bytes.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714120917.11253-1-joro@8bytes.org> References: <20200714120917.11253-1-joro@8bytes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel For SEV-ES this entry point will be used for restarting APs after they have been offlined. Remove the '0' from the name to reflect that. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/cpu.h | 2 +- arch/x86/kernel/head_32.S | 4 ++-- arch/x86/kernel/head_64.S | 6 +++--- arch/x86/kernel/smpboot.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index da78ccbd493b..1536b607971f 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h @@ -29,7 +29,7 @@ struct x86_cpu { #ifdef CONFIG_HOTPLUG_CPU extern int arch_register_cpu(int num); extern void arch_unregister_cpu(int); -extern void start_cpu0(void); +extern void start_cpu(void); #ifdef CONFIG_DEBUG_HOTPLUG_CPU0 extern int _debug_hotplug_cpu(int cpu, int action); #endif diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index f66a6b90f954..aad62c677486 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -174,12 +174,12 @@ SYM_CODE_END(startup_32) * up already except stack. We just set up stack here. Then call * start_secondary(). */ -SYM_FUNC_START(start_cpu0) +SYM_FUNC_START(start_cpu) movl initial_stack, %ecx movl %ecx, %esp call *(initial_code) 1: jmp 1b -SYM_FUNC_END(start_cpu0) +SYM_FUNC_END(start_cpu) #endif /* diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 8b43ed0592e8..12d1e407461c 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -319,15 +319,15 @@ SYM_CODE_END(secondary_startup_64) #ifdef CONFIG_HOTPLUG_CPU /* - * Boot CPU0 entry point. It's called from play_dead(). Everything has been set + * CPU entry point. It's called from play_dead(). Everything has been set * up already except stack. We just set up stack here. Then call * start_secondary() via .Ljump_to_C_code. */ -SYM_CODE_START(start_cpu0) +SYM_CODE_START(start_cpu) UNWIND_HINT_EMPTY movq initial_stack(%rip), %rsp jmp .Ljump_to_C_code -SYM_CODE_END(start_cpu0) +SYM_CODE_END(start_cpu) #endif /* Both SMP bootup and ACPI suspend change these variables */ diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ffbd9a3d78d8..5a173459759d 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -1729,7 +1729,7 @@ static inline void mwait_play_dead(void) * If NMI wants to wake up CPU0, start CPU0. */ if (wakeup_cpu0()) - start_cpu0(); + start_cpu(); } } @@ -1744,7 +1744,7 @@ void hlt_play_dead(void) * If NMI wants to wake up CPU0, start CPU0. */ if (wakeup_cpu0()) - start_cpu0(); + start_cpu(); } } -- 2.27.0