Re: [PATCH 10/14] powercap/dtpm_cpu, hotplug: Update name & callback to match the hotplug state
From: Srivatsa S. Bhat
Date: Fri Dec 04 2026 - 12:59:59 EST
On Fri, Dec 04, 2026 at 01:40:54PM +0100, Rafael J. Wysocki (Intel) wrote:
> On Thu, Dec 3, 2026 at 8:20 PM Srivatsa S. Bhat (Microsoft)
> <srivatsa@xxxxxxxxxxxxx> wrote:
> >
> > The powercap dtpm_cpu driver registers a CPU hotplug teardown callback
> > at CPUHP_AP_DTPM_CPU_DEAD, but names the state "dtpm_cpu:offline". This
> > is misleading because the 'offline' suffix denotes the (teardown-only
> > state within the) ONLINE section, and not the PREPARE section where this
> > callback actually runs.
> >
> > Rename it to "dtpm_cpu:dead", following the naming convention documented
> > in Documentation/core-api/cpu_hotplug.rst.
> >
> > Also, rename the registered CPU hotplug teardown callback to match the
> > state that it is associated with.
> >
> > No functional change intended,
>
> So Fixes: is not applicable AFAICS.
>
Got it, thank you! I'll drop the fixes tag throughout this series in v2.
> > except for the update to the name string,
> > which gets reflected in sysfs output and instrumentation.
> >
> > Fixes: 4570ddda4338 ("powercap/drivers/dtpm: Encapsulate even more the code")
> > Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
> > ---
Regards,
Srivatsa