Re: [PATCH 05/14] cpuidle, cpu/hotplug: Update name & callbacks to match their hotplug states
From: Srivatsa S. Bhat
Date: Fri Dec 04 2026 - 13:10:45 EST
On Fri, Dec 04, 2026 at 01:39:39PM +0100, Rafael J. Wysocki (Intel) wrote:
> On Thu, Dec 3, 2026 at 8:18 PM Srivatsa S. Bhat (Microsoft)
> <srivatsa@xxxxxxxxxxxxx> wrote:
> >
> > The PSCI and RISC-V SBI idle drivers register their hotplug callbacks at
> > CPUHP_AP_CPU_PM_STARTING, but both state names end in ':online'.
> > This state belongs to the STARTING section, whose callbacks run with
> > interrupts disabled, not to the ONLINE section.
> >
> > Change both suffixes to ':starting', 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: 9c6ceecb6541 ("cpuidle: psci: Support CPU hotplug for the hierarchical model")
> > Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver")
>
> These two drivers are maintained by different people, so it would be
> good to send separate patches for them unless you want the series to
> be routed together.
>
I see, thank you for the heads-up! I'll split them into separate patches for v2.
As for routing the patches, I don't have any preference as such -- all the patches
are independent, so they can go through different trees without introducing any
dependencies, if that's convenient.
Or, @Thomas, if you would like to take the entire series through the tip tree
considering these are changes related to CPU hotplug callsites, that would be
great too (i.e., if you are ok with the changes proposed, of course! :-)).
> > Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
> > ---
> > drivers/cpuidle/cpuidle-psci.c | 10 +++++-----
> > drivers/cpuidle/cpuidle-riscv-sbi.c | 10 +++++-----
> > 2 files changed, 10 insertions(+), 10 deletions(-)
> >
Regards,
Srivatsa