From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796364017; b=ItnqmFdNrRcKzl2LK3wjvQVPiWSjJplvybsiRMJAef0RKu+Ph1NGCeMHqOfcn0hme/e0 mlx47qVCSkXCXyWPGSqCUKZLw2Tv9OFzT0AJPRjjdGedn0MMukLuQbRfqx5euryb2iwRL EqTg1xOY3IHFQ7aQ1C2FOA6U90ClbNuH3mCXz9GKfSRrSmsFgiYqSdpqYzt+AC/CsnbDD wFG+Azy1a7jb3Bo0Egm/OldZSGyNFgXSRhZR0SW+uWRYEjCgi0raiuYahHKX9wKsAOyl4 ngqFoP1gZ50bCKqVw0jO2WH2P/zVCBOtdRh5JEFju5kEUB4t0rUb3+b4uNmP4C2PVyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796364017; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=/QP7oTMyqQygHQ8Y1KZiHqWD+b8l0mPh2eF7f253GUM=; b=qNbIGdMfkBUd5OaeEywZo6zaGwqsQd1tKnG0xqs5ljLqR+3XWjOWwaZ/u1KZjXM8YmQ5 mHuySQfWEpcRHY0l3+9IFjA99EGOdMR2xgdvQkJLtrQgSNETbdU1v5vAdZiiVpkKwzX1W f5WDXOmg9MvGNdWkoQi58RSQw5XzeqiLO+ve1jC5pow2IG3NiY5H3qXGwp3fy75WoCe4W timO1bNKxmavTVuEyfi/JIhaG5ESQ68J3J0FUJSH4oCYY4Dk3q1GezWR3kZPeNgOrbnvW Q4wxTl1th8hQAE2IGL5ikJO91LYDBB4UXf/XP7xExzDhgREEYRXlxfbcgC0zmgXFJwQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=DpOj70J2; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33C67606A32D; Fri, 4 Dec 2026 06:00:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 33C67606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=DpOj70J2 Received: from [10.94.176.68] (unknown [52.172.102.222]) by linux.microsoft.com (Postfix) with ESMTPSA id 6DAA520B7168; Thu, 3 Dec 2026 21:59:56 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6DAA520B7168 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796364016; bh=/QP7oTMyqQygHQ8Y1KZiHqWD+b8l0mPh2eF7f253GUM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DpOj70J2CWOuPksRBhNETjI1pLVKRgHYCwf300bGj6Tv5A6JywwnEK0SaFWA928mZ xdK7+/B8LRQv2AHkilQ+3K2bf+pFLjE1/BpNYpSALirPGB2tKioMVl+9fue9ShdkCq DlEX8NNdXHfBTkPVoi2uosP7QNIKlgXwcBKQkbFo= Message-ID: Date: Fri, 4 Dec 2026 11:29:54 +0530 X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 03/14] riscv, cpu/hotplug: Update name & callbacks to match their hotplug states To: "Srivatsa S. Bhat (Microsoft)" , Jassi Brar , Michal Simek , Saeed Nowshadi , Tanmay Shah , Tejas Patel , Rajan Vaja , Greg Kroah-Hartman , Abhyuday Godhasara , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heinrich Schuchardt , Anup Patel , Conor Dooley , Caleb James DeLisle , Daniel Lezcano , Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , Herve Codina , Chris Packham , Markus Stockhausen , Sander Vanheule , Lorenzo Pieralisi , Sudeep Holla , Ulf Hansson , "Rafael J. Wysocki" , Christian Loehle , Anup Patel , Atish Patra , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Alexander Shishkin , Yeoreum Yun , Radu Rendec , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Lukasz Luba , Jens Wiklander , Sumit Garg , Etienne Carriere , Andrew Morton , Zqiang , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , Guo Ren , Mao Han , Mete Durlu , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt , linux-riscv@lists.infradead.org, linux-mips@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, coresight@lists.linaro.org, linux-leds@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-perf-users@vger.kernel.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, Saurabh Sengar , Thara Gopinath References: <20261204-fix-cpuhp-state-names-v1-0-32e62361ce1d@csail.mit.edu> <20261204-fix-cpuhp-state-names-v1-3-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-3-32e62361ce1d@csail.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote: > The cpuinfo CPU hotplug callback is registered at CPUHP_AP_ONLINE_DYN, > but its state name is "riscv/cpuinfo:starting". This is misleading > because the 'starting' suffix denotes the earlier, interrupts-disabled > STARTING section, and not the ONLINE section. > > Rename it to "riscv/cpuinfo:online", following the naming convention > documented in Documentation/core-api/cpu_hotplug.rst. > > Also, rename the registered CPU hotplug startup and teardown callbacks > to match the states that they are associated with. > > No functional change intended, except for the update to the name string, > which gets reflected in sysfs output and instrumentation. > > Fixes: 3baca1a4d490 ("RISC-V: Add mvendorid, marchid, and mimpid to /proc/cpuinfo output") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > arch/riscv/kernel/cpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c > index af84b97af3a1..2eb4bd346f30 100644 > --- a/arch/riscv/kernel/cpu.c > +++ b/arch/riscv/kernel/cpu.c > @@ -192,7 +192,7 @@ unsigned long riscv_cached_mimpid(unsigned int cpu_id) > } > EXPORT_SYMBOL(riscv_cached_mimpid); > > -static int riscv_cpuinfo_starting(unsigned int cpu) > +static int riscv_cpuinfo_cpu_online(unsigned int cpu) > { > struct riscv_cpuinfo *ci = this_cpu_ptr(&riscv_cpuinfo); > > @@ -221,8 +221,8 @@ static int __init riscv_cpuinfo_init(void) > { > int ret; > > - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "riscv/cpuinfo:starting", > - riscv_cpuinfo_starting, NULL); > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "riscv/cpuinfo:online", > + riscv_cpuinfo_cpu_online, NULL); > if (ret < 0) { > pr_err("cpuinfo: failed to register hotplug callbacks.\n"); > return ret; > Looks good to me. Reviewed-by: Prasanna Kumar T S M