From nobody Sun Feb 8 13:39:45 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 456FCC77B7F for ; Tue, 16 May 2023 09:10:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231754AbjEPJK4 (ORCPT ); Tue, 16 May 2023 05:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbjEPJKF (ORCPT ); Tue, 16 May 2023 05:10:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A355A49F5; Tue, 16 May 2023 02:10:01 -0700 (PDT) Date: Tue, 16 May 2023 09:09:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684228197; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KX8Ot/wYO1ZvdLJGOBq0J38CTuRduAdt+c2T/8576OE=; b=kLo6DZ4bCROyzmjRa2awRgSnnSHSu/UP+Ci8BOWPfgpsGJcchxP3wnDyI+jtrd1J8p80kS yHuNlFXBLU6ksLgloeAbWXO4MaIrVPkqdCYZzsNaAJ5RdUgAiAeZ/1dHxoYhVyu9uW/aTi 8LurvBeJu0/749D+f2YfZpNZR3G0m3S1CU+ZUJgcZRHjOQd/5oWqZqd2YjA77GdChsaLjW DDyYSTQo282VFKjfPg+U1TwY3U9yjC6oX365JGTJT9Ge+a4SmMAsirg9aAasjUx0XqZZgc MIhZ59dRXqECocKYjQCuFmt/BeFgIler3AO1YxW7yO+SdybSPT2yJC+4PNg+HQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684228197; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KX8Ot/wYO1ZvdLJGOBq0J38CTuRduAdt+c2T/8576OE=; b=0UPuvfTtbRuJY6s5ZLVIV2d8rv9m2qkyd7H3TfAR/4o6pgLE2CmODzKXhOHNC5vl5wnr3k DtGKg4W/wTefflBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] csky/smp: Switch to hotplug core state synchronization Cc: Thomas Gleixner , "Peter Zijlstra (Intel)" , Michael Kelley , Oleksandr Natalenko , Helge Deller , "Guilherme G. Piccoli" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230512205256.747254502@linutronix.de> References: <20230512205256.747254502@linutronix.de> MIME-Version: 1.0 Message-ID: <168422819707.404.11869298820913365779.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: 7202e979645715318f2f21a324cb8a506e12fa76 Gitweb: https://git.kernel.org/tip/7202e979645715318f2f21a324cb8a506= e12fa76 Author: Thomas Gleixner AuthorDate: Fri, 12 May 2023 23:07:35 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 15 May 2023 13:44:58 +02:00 csky/smp: Switch to hotplug core state synchronization Switch to the CPU hotplug core state tracking and synchronization mechanim. No functional change intended. Signed-off-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Oleksandr Natalenko Tested-by: Helge Deller # parisc Tested-by: Guilherme G. Piccoli # Steam Deck Link: https://lore.kernel.org/r/20230512205256.747254502@linutronix.de --- arch/csky/Kconfig | 1 + arch/csky/include/asm/smp.h | 2 +- arch/csky/kernel/smp.c | 8 ++------ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index 4df1f8c..95f1e9b 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -96,6 +96,7 @@ config CSKY select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_STACKPROTECTOR select HAVE_SYSCALL_TRACEPOINTS + select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU select MAY_HAVE_SPARSE_IRQ select MODULES_USE_ELF_RELA if MODULES select OF diff --git a/arch/csky/include/asm/smp.h b/arch/csky/include/asm/smp.h index 668b79c..d3db334 100644 --- a/arch/csky/include/asm/smp.h +++ b/arch/csky/include/asm/smp.h @@ -23,7 +23,7 @@ void __init set_send_ipi(void (*func)(const struct cpumas= k *mask), int irq); =20 int __cpu_disable(void); =20 -void __cpu_die(unsigned int cpu); +static inline void __cpu_die(unsigned int cpu) { } =20 #endif /* CONFIG_SMP */ =20 diff --git a/arch/csky/kernel/smp.c b/arch/csky/kernel/smp.c index b12e2c3..8e42352 100644 --- a/arch/csky/kernel/smp.c +++ b/arch/csky/kernel/smp.c @@ -291,12 +291,8 @@ int __cpu_disable(void) return 0; } =20 -void __cpu_die(unsigned int cpu) +void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu) { - if (!cpu_wait_death(cpu, 5)) { - pr_crit("CPU%u: shutdown failed\n", cpu); - return; - } pr_notice("CPU%u: shutdown\n", cpu); } =20 @@ -304,7 +300,7 @@ void __noreturn arch_cpu_idle_dead(void) { idle_task_exit(); =20 - cpu_report_death(); + cpuhp_ap_report_dead(); =20 while (!secondary_stack) arch_cpu_idle();