From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9EF8606A322 for ; Fri, 4 Dec 2026 06:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Gsaef8D6; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=TKFsOZ4f DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=gWCgRXftDTr7QCYzzJahz3YwcFA2EjLQwEkkh6Taidw=; b=Gsaef8D6NijlCGbVLD4myaPl5F kPWRDdMzUtRTJNvD/nNhnB5A5LiidU5OiZLQp3J5mjY50D9H14+qUOX9YtLB9SNqxwR0mto+V1QoC q2D/KLkVEomG2USOCzLz4ND6V3TmFHYmN2SfRMATyTUdEcuVvDCuduMbRK8838oU0diQcvHMkD2Vc PSk38ce9bhymXLH1F85HRovpFpakANJCYpNbdp3lJqWMKD7I1/ZmeGcu8+IQ1r01QlREDyz4AgnH+ OH2ckk4HUMs+kP6yoroxxvY8lSLPpq39++n0r9/jdaYAhcQvgp1xSQF8I9vupYA6C7aHBZjI5k+nD DL+LUvgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZMuZ-0000000Gp4J-1UB1; Fri, 04 Dec 2026 06:36:51 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZMuS-0000000Gp0m-0f8b; Fri, 04 Dec 2026 06:36:49 +0000 Received: from [10.94.176.68] (unknown [52.172.102.253]) by linux.microsoft.com (Postfix) with ESMTPSA id 12A4C20B7169; Thu, 3 Dec 2026 22:36:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 12A4C20B7169 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796366202; bh=AdwAbrXu9k8IxzuC37lLJZp5RHtFlX0YXxDFBjwSgPQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TKFsOZ4fWnDBkGog0upPkKS4bjMjGib1uJNTtkBjtxWB6Q26mBhbkiCZ9AVukSGix QHPg5T+Utw87Fq55f/1HOiY10rJpSL40ULuDvNamAIYjPBZyvnd86wemY4BUy+VCTm U/wlFdcr363G2dm5k6J/CmmrUeFNZw1qW9Cr8I3w= Message-ID: Date: Fri, 4 Dec 2026 12:06:19 +0530 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 04/14] clocksource/drivers, 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-4-32e62361ce1d@csail.mit.edu> Content-Language: en-US From: Prasanna Kumar T S M In-Reply-To: <20261204-fix-cpuhp-state-names-v1-4-32e62361ce1d@csail.mit.edu> X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_223646_538095_7D3F0C8D X-CRM114-Status: GOOD ( 24.67 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-riscv" On 04-12-2026 00:46, Srivatsa S. Bhat (Microsoft) wrote: > The EcoNet, NXP PIT, NXP STM and Renesas RZ/N1 timer drivers register > CPUHP_AP_ONLINE_DYN states but name them using the ':starting' suffix. > Conversely, the Realtek Otto timer labels > CPUHP_AP_REALTEK_TIMER_STARTING with an ':online' suffix. > > Use ':online' for the ONLINE states and ':starting' for the STARTING > state, as documented in Documentation/core-api/cpu_hotplug.rst. This > makes the hotplug state names describe the actual callback execution > sections. > > 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: 3b4c33ac87d0 ("clocksource/drivers: Add EcoNet Timer HPT driver") > Fixes: bee33f22d7c3 ("clocksource/drivers/nxp-pit: Add NXP Automotive s32g2 / s32g3 support") > Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms") > Fixes: 4bdc3eaa102b ("clocksource/drivers/realtek: Add timer driver for rtl-otto platforms") > Fixes: 435167b4f301 ("clocksource/drivers: Add support for the Renesas RZ/N1 timers") > Signed-off-by: Srivatsa S. Bhat (Microsoft) > --- > drivers/clocksource/timer-econet-en751221.c | 6 +++--- > drivers/clocksource/timer-nxp-pit.c | 6 +++--- > drivers/clocksource/timer-nxp-stm.c | 6 +++--- > drivers/clocksource/timer-rtl-otto.c | 2 +- > drivers/clocksource/timer-rzn1.c | 10 +++++----- > 5 files changed, 15 insertions(+), 15 deletions(-) > > diff --git a/drivers/clocksource/timer-econet-en751221.c b/drivers/clocksource/timer-econet-en751221.c > index 1859335345b5..9faa54becba2 100644 > --- a/drivers/clocksource/timer-econet-en751221.c > +++ b/drivers/clocksource/timer-econet-en751221.c > @@ -93,7 +93,7 @@ static int cevt_set_next_event(ulong delta, struct clock_event_device *dev) > return 0; > } > > -static int cevt_init_cpu(uint cpu) > +static int cevt_cpu_online(uint cpu) > { > struct clock_event_device *cd = &per_cpu(econet_timer_pcpu, cpu); > u32 reg; > @@ -159,8 +159,8 @@ static int __init cevt_init(struct device_node *np) > } > > cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > - "clockevents/econet/timer:starting", > - cevt_init_cpu, NULL); > + "clockevents/econet/timer:online", > + cevt_cpu_online, NULL); > return 0; > > err_unmap_irq: > diff --git a/drivers/clocksource/timer-nxp-pit.c b/drivers/clocksource/timer-nxp-pit.c > index 2f70d1d5e21b..e446f5fe691e 100644 > --- a/drivers/clocksource/timer-nxp-pit.c > +++ b/drivers/clocksource/timer-nxp-pit.c > @@ -240,7 +240,7 @@ static void pit_clockevent_per_cpu_exit(struct pit_timer *pit, unsigned int cpu) > per_cpu(pit_timers, cpu) = NULL; > } > > -static int pit_clockevent_starting_cpu(unsigned int cpu) > +static int pit_clockevent_cpu_online(unsigned int cpu) > { > struct pit_timer *pit = per_cpu(pit_timers, cpu); > int ret; > @@ -326,8 +326,8 @@ static int pit_timer_init(struct device_node *np) > pit_instances++; > > if (pit_instances == max_pit_instances) { > - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "PIT timer:starting", > - pit_clockevent_starting_cpu, NULL); > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "PIT timer:online", > + pit_clockevent_cpu_online, NULL); > if (ret < 0) { > pit_clockevent_per_cpu_exit(pit, pit_instances); > goto out_pit_clocksource_unregister; > diff --git a/drivers/clocksource/timer-nxp-stm.c b/drivers/clocksource/timer-nxp-stm.c > index ca6c0df0e548..043c0dfec021 100644 > --- a/drivers/clocksource/timer-nxp-stm.c > +++ b/drivers/clocksource/timer-nxp-stm.c > @@ -324,7 +324,7 @@ static int nxp_stm_clockevent_per_cpu_init(struct device *dev, struct stm_timer > return 0; > } > > -static int nxp_stm_clockevent_starting_cpu(unsigned int cpu) > +static int nxp_stm_clockevent_cpu_online(unsigned int cpu) > { > struct stm_timer *stm_timer = per_cpu(stm_timers, cpu); > int ret; > @@ -467,8 +467,8 @@ static int nxp_stm_timer_probe(struct platform_device *pdev) > * initialization by registering the clockevents > */ > if (stm_instances == num_possible_cpus()) { > - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "STM timer:starting", > - nxp_stm_clockevent_starting_cpu, NULL); > + ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "STM timer:online", > + nxp_stm_clockevent_cpu_online, NULL); > if (ret < 0) > return ret; > } > diff --git a/drivers/clocksource/timer-rtl-otto.c b/drivers/clocksource/timer-rtl-otto.c > index 0d1b9a01a94c..6522f548de07 100644 > --- a/drivers/clocksource/timer-rtl-otto.c > +++ b/drivers/clocksource/timer-rtl-otto.c > @@ -286,7 +286,7 @@ static int __init rttm_probe(struct device_node *np) > pr_err(" setup of timer %d as clocksource failed", clkidx); > > return cpuhp_setup_state(CPUHP_AP_REALTEK_TIMER_STARTING, > - "timer/realtek:online", > + "timer/realtek:starting", > rttm_cpu_starting, NULL); > rollback: > pr_err("timer registration failed\n"); > diff --git a/drivers/clocksource/timer-rzn1.c b/drivers/clocksource/timer-rzn1.c > index 918e80ce5c62..1f6ad647c7aa 100644 > --- a/drivers/clocksource/timer-rzn1.c > +++ b/drivers/clocksource/timer-rzn1.c > @@ -176,7 +176,7 @@ static struct clocksource rzn1_clocksource = { > /* Timers table where 16-bit timers will be assigned per-cpu */ > static struct rzn1_timer *rzn1_tab_timers; > > -static int rzn1_local_timer_starting_cpu(unsigned int cpu) > +static int rzn1_local_timer_cpu_online(unsigned int cpu) > { > struct rzn1_timer *timer; > > @@ -200,7 +200,7 @@ static int rzn1_local_timer_starting_cpu(unsigned int cpu) > return 0; > } > > -static int rzn1_local_timer_dying_cpu(unsigned int cpu) > +static int rzn1_local_timer_cpu_offline(unsigned int cpu) > { > struct rzn1_timer *timer; > > @@ -366,9 +366,9 @@ static int rzn1_timer_probe_first(struct platform_device *pdev, > */ > rzn1_tab_timers = tab_timers; > ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, > - "clockevents/rzn1/global_timer:starting", > - rzn1_local_timer_starting_cpu, > - rzn1_local_timer_dying_cpu); > + "clockevents/rzn1/global_timer:online", > + rzn1_local_timer_cpu_online, > + rzn1_local_timer_cpu_offline); > if (ret < 0) > return dev_err_probe(dev, ret, "Setup CPU hotplug state failed\n"); > > Looks good to me. Reviewed-by: Prasanna Kumar T S M _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv