From: Prasanna Kumar T S M <ptsm@linux.microsoft.com>
To: "Srivatsa S. Bhat (Microsoft)" <srivatsa@csail.mit.edu>,
"Jassi Brar" <jassisinghbrar@gmail.com>,
"Michal Simek" <michal.simek@amd.com>,
"Saeed Nowshadi" <saeed.nowshadi@amd.com>,
"Tanmay Shah" <tanmay.shah@amd.com>,
"Tejas Patel" <tejas.patel@xilinx.com>,
"Rajan Vaja" <rajan.vaja@xilinx.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Abhyuday Godhasara" <abhyuday.godhasara@xilinx.com>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Heinrich Schuchardt" <heinrich.schuchardt@canonical.com>,
"Anup Patel" <apatel@ventanamicro.com>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Caleb James DeLisle" <cjd@cjdns.fr>,
"Daniel Lezcano" <daniel.lezcano@kernel.org>,
"Thomas Gleixner" <tglx@kernel.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Herve Codina" <herve.codina@bootlin.com>,
"Chris Packham" <chris.packham@alliedtelesis.co.nz>,
"Markus Stockhausen" <markus.stockhausen@gmx.de>,
"Sander Vanheule" <sander@svanheule.net>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Sudeep Holla" <sudeep.holla@kernel.org>,
"Ulf Hansson" <ulfh@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Christian Loehle" <christian.loehle@arm.com>,
"Anup Patel" <anup@brainfault.org>,
"Atish Patra" <atishp@rivosinc.com>,
"Suzuki K Poulose" <suzuki.poulose@arm.com>,
"Mike Leach" <mike.leach@arm.com>,
"James Clark" <james.clark@linaro.org>,
"Leo Yan" <leo.yan@arm.com>,
"Alexander Shishkin" <alexander.shishkin@linux.intel.com>,
"Yeoreum Yun" <yeoreum.yun@arm.com>,
"Radu Rendec" <radu@rendec.net>,
"Björn Töpel" <bjorn@rivosinc.com>, "Lee Jones" <lee@kernel.org>,
"Pavel Machek" <pavel@kernel.org>,
"Griffin Kroah-Hartman" <griffin@kroah.com>,
"Lukasz Luba" <lukasz.luba@arm.com>,
"Jens Wiklander" <jenswi@kernel.org>,
"Sumit Garg" <sumit.garg@kernel.org>,
"Etienne Carriere" <etienne.carriere@linaro.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
Zqiang <qiang.zhang@windriver.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Arnaldo Carvalho de Melo" <acme@kernel.org>,
"Namhyung Kim" <namhyung@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Jiri Olsa" <jolsa@kernel.org>, "Ian Rogers" <irogers@google.com>,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Guo Ren" <guoren@kernel.org>, "Mao Han" <han_mao@c-sky.com>,
"Mete Durlu" <meted@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Sven Schnelle" <svens@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Palmer Dabbelt <palmer@rivosinc.com>,
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 <ssengar@linux.microsoft.com>,
Thara Gopinath <tgopinath@linux.microsoft.com>
Subject: Re: [PATCH 04/14] clocksource/drivers, hotplug: Update name & callbacks to match their hotplug states
Date: Fri, 4 Dec 2026 12:06:19 +0530 [thread overview]
Message-ID: <ac7f8117-fcf8-486f-be6e-2bb52128c7ff@linux.microsoft.com> (raw)
In-Reply-To: <20261204-fix-cpuhp-state-names-v1-4-32e62361ce1d@csail.mit.edu>
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) <srivatsa@csail.mit.edu>
> ---
> 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 <ptsm@linux.microsoft.com>
WARNING: multiple messages have this Message-ID (diff)
From: Prasanna Kumar T S M <ptsm@linux.microsoft.com>
To: "Srivatsa S. Bhat (Microsoft)" <srivatsa@csail.mit.edu>,
"Jassi Brar" <jassisinghbrar@gmail.com>,
"Michal Simek" <michal.simek@amd.com>,
"Saeed Nowshadi" <saeed.nowshadi@amd.com>,
"Tanmay Shah" <tanmay.shah@amd.com>,
"Tejas Patel" <tejas.patel@xilinx.com>,
"Rajan Vaja" <rajan.vaja@xilinx.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Abhyuday Godhasara" <abhyuday.godhasara@xilinx.com>,
"Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Heinrich Schuchardt" <heinrich.schuchardt@canonical.com>,
"Anup Patel" <apatel@ventanamicro.com>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Caleb James DeLisle" <cjd@cjdns.fr>,
"Daniel Lezcano" <daniel.lezcano@kernel.org>,
"Thomas Gleixner" <tglx@kernel.org>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Herve Codina" <herve.codina@bootlin.com>,
"Chris Packham" <chris.packham@alliedtelesis.co.nz>,
"Markus Stockhausen" <markus.stockhausen@gmx.de>,
"Sander Vanheule" <sander@svanheule.net>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Sudeep Holla" <sudeep.holla@kernel.org>,
"Ulf Hansson" <ulfh@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Christian Loehle" <christian.loehle@arm.com>,
"Anup Patel" <anup@brainfault.org>,
"Atish Patra" <atishp@rivosinc.com>,
"Suzuki K Poulose" <suzuki.poulose@arm.com>,
"Mike Leach" <mike.leach@arm.com>,
"James Clark" <james.clark@linaro.org>,
"Leo Yan" <leo.yan@arm.com>,
"Alexander Shishkin" <alexander.shishkin@linux.intel.com>,
"Yeoreum Yun" <yeoreum.yun@arm.com>,
"Radu Rendec" <radu@rendec.net>,
"Björn Töpel" <bjorn@rivosinc.com>, "Lee Jones" <lee@kernel.org>,
"Pavel Machek" <pavel@kernel.org>,
"Griffin Kroah-Hartman" <griffin@kroah.com>,
"Lukasz Luba" <lukasz.luba@arm.com>,
"Jens Wiklander" <jenswi@kernel.org>,
"Sumit Garg" <sumit.garg@kernel.org>,
"Etienne Carriere" <etienne.carriere@linaro.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
Zqiang <qiang.zhang@windriver.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Ingo Molnar" <mingo@redhat.com>,
"Arnaldo Carvalho de Melo" <acme@kernel.org>,
"Namhyung Kim" <namhyung@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Jiri Olsa" <jolsa@kernel.org>, "Ian Rogers" <irogers@google.com>,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Guo Ren" <guoren@kernel.org>, "Mao Han" <han_mao@c-sky.com>,
"Mete Durlu" <meted@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Sven Schnelle" <svens@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Palmer Dabbelt <palmer@rivosinc.com>,
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 <ssengar@linux.microsoft.com>,
Thara Gopinath <tgopinath@linux.microsoft.com>
Subject: Re: [PATCH 04/14] clocksource/drivers, hotplug: Update name & callbacks to match their hotplug states
Date: Fri, 4 Dec 2026 12:06:19 +0530 [thread overview]
Message-ID: <ac7f8117-fcf8-486f-be6e-2bb52128c7ff@linux.microsoft.com> (raw)
In-Reply-To: <20261204-fix-cpuhp-state-names-v1-4-32e62361ce1d@csail.mit.edu>
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) <srivatsa@csail.mit.edu>
> ---
> 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 <ptsm@linux.microsoft.com>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-12-04 6:36 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 19:16 [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 01/14] mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 5:54 ` Prasanna Kumar T S M
2026-12-04 5:54 ` Prasanna Kumar T S M
2026-12-04 18:09 ` Srivatsa S. Bhat
2026-12-04 18:09 ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 02/14] soc/xilinx, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 5:59 ` Prasanna Kumar T S M
2026-12-04 5:59 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 03/14] riscv, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:27 ` sashiko-bot
2026-12-04 5:59 ` Prasanna Kumar T S M
2026-12-04 5:59 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 04/14] clocksource/drivers, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:40 ` sashiko-bot
2026-12-03 21:20 ` Herve Codina
2026-12-03 21:20 ` Herve Codina
2026-12-03 21:20 ` Herve Codina via OP-TEE
2026-12-04 6:36 ` Prasanna Kumar T S M [this message]
2026-12-04 6:36 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 05/14] cpuidle, cpu/hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 6:45 ` Prasanna Kumar T S M
2026-12-04 6:45 ` Prasanna Kumar T S M
2026-12-04 12:39 ` Rafael J. Wysocki (Intel)
2026-12-04 12:39 ` Rafael J. Wysocki (Intel)
2026-12-04 12:39 ` Rafael J. Wysocki (Intel) via OP-TEE
2026-12-04 18:05 ` Srivatsa S. Bhat
2026-12-04 18:05 ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 06/14] firmware/arm_ffa, cpu/hotplug: Update name to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:18 ` Prasanna Kumar T S M
2026-12-04 7:18 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 07/14] coresight, cpu/hotplug: Update name & callbacks to match their hotplug states Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` [PATCH 08/14] irqchip/riscv-aplic, hotplug: " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:41 ` sashiko-bot
2026-12-04 7:19 ` Prasanna Kumar T S M
2026-12-04 7:19 ` Prasanna Kumar T S M
2026-12-04 16:47 ` Thomas Gleixner
2026-12-04 16:47 ` Thomas Gleixner
2026-12-04 16:47 ` Thomas Gleixner via OP-TEE
2026-12-04 17:57 ` Srivatsa S. Bhat
2026-12-04 17:57 ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 09/14] leds/trigger/cpu, " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-03 19:39 ` sashiko-bot
2026-12-04 7:21 ` Prasanna Kumar T S M
2026-12-04 7:21 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 10/14] powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:25 ` Prasanna Kumar T S M
2026-12-04 7:25 ` Prasanna Kumar T S M
2026-12-04 12:40 ` Rafael J. Wysocki (Intel)
2026-12-04 12:40 ` Rafael J. Wysocki (Intel)
2026-12-04 12:40 ` Rafael J. Wysocki (Intel) via OP-TEE
2026-12-04 17:58 ` Srivatsa S. Bhat
2026-12-04 17:58 ` Srivatsa S. Bhat
2026-12-03 19:16 ` [PATCH 11/14] optee, cpu/hotplug: Update name to match the CPU " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:26 ` Prasanna Kumar T S M
2026-12-04 7:26 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 12/14] debugobjects, cpu/hotplug: Update name & callback to match the " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:26 ` Prasanna Kumar T S M
2026-12-04 7:26 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 13/14] csky, cpu/hotplug: Update name & callbacks to match their " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:28 ` Prasanna Kumar T S M
2026-12-04 7:28 ` Prasanna Kumar T S M
2026-12-03 19:16 ` [PATCH 14/14] cpuidle/s390, cpu/hotplug: Update teardown callback to match its " Srivatsa S. Bhat (Microsoft)
2026-12-03 19:16 ` Srivatsa S. Bhat (Microsoft)
2026-12-04 7:28 ` Prasanna Kumar T S M
2026-12-04 7:28 ` Prasanna Kumar T S M
2026-12-04 8:30 ` Mete Durlu
2026-12-04 8:30 ` Mete Durlu
2026-12-03 19:52 ` [PATCH 00/14] treewide, cpu/hotplug: Align state and callback names with their sections sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac7f8117-fcf8-486f-be6e-2bb52128c7ff@linux.microsoft.com \
--to=ptsm@linux.microsoft.com \
--cc=abhyuday.godhasara@xilinx.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=alex@ghiti.fr \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=apatel@ventanamicro.com \
--cc=atishp@rivosinc.com \
--cc=bjorn@rivosinc.com \
--cc=borntraeger@linux.ibm.com \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=christian.loehle@arm.com \
--cc=cjd@cjdns.fr \
--cc=conor.dooley@microchip.com \
--cc=coresight@lists.linaro.org \
--cc=daniel.lezcano@kernel.org \
--cc=etienne.carriere@linaro.org \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=griffin@kroah.com \
--cc=guoren@kernel.org \
--cc=han_mao@c-sky.com \
--cc=hca@linux.ibm.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=herve.codina@bootlin.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jassisinghbrar@gmail.com \
--cc=jenswi@kernel.org \
--cc=jolsa@kernel.org \
--cc=lee@kernel.org \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=lpieralisi@kernel.org \
--cc=lukasz.luba@arm.com \
--cc=mark.rutland@arm.com \
--cc=markus.stockhausen@gmx.de \
--cc=mcoquelin.stm32@gmail.com \
--cc=meted@linux.ibm.com \
--cc=michal.simek@amd.com \
--cc=mike.leach@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=op-tee@lists.trustedfirmware.org \
--cc=palmer@dabbelt.com \
--cc=palmer@rivosinc.com \
--cc=pavel@kernel.org \
--cc=peterz@infradead.org \
--cc=pjw@kernel.org \
--cc=qiang.zhang@windriver.com \
--cc=radu@rendec.net \
--cc=rafael@kernel.org \
--cc=rajan.vaja@xilinx.com \
--cc=saeed.nowshadi@amd.com \
--cc=sander@svanheule.net \
--cc=srivatsa@csail.mit.edu \
--cc=ssengar@linux.microsoft.com \
--cc=sudeep.holla@kernel.org \
--cc=sumit.garg@kernel.org \
--cc=suzuki.poulose@arm.com \
--cc=svens@linux.ibm.com \
--cc=tanmay.shah@amd.com \
--cc=tejas.patel@xilinx.com \
--cc=tglx@kernel.org \
--cc=tgopinath@linux.microsoft.com \
--cc=ulfh@kernel.org \
--cc=yeoreum.yun@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.