Re: [PATCH] cpu/hotplug: Rename cpuhp_remove_multi_state to be symmetric with setup

From: Srivatsa S. Bhat

Date: Fri Nov 27 2026 - 03:51:22 EST


Hi Richard,

On Fri, Nov 27, 2026 at 04:09:11PM +0800, Richard Cheng wrote:
> On Fri, Nov 27, 2026 at 01:07:40PM +0800, Srivatsa S. Bhat (Microsoft) wrote:
> > The multi-instance CPU hotplug state setup API is named as
> > cpuhp_setup_state_multi(), whereas the corresponding remove API is
> > currently named as cpuhp_remove_multi_state(). Rename the latter as
> > cpuhp_remove_state_multi() to fix the asymmetry. This also helps
> > maintain consistency in the API names by letting them share a common
> > prefix, i.e., cpuhp_setup/remove_state_*() across all the variants
> > [none|nocalls|nocalls_cpuslocked].
> >
> > Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
>
> Hi Srivatsa,
>
> Not sure whether this is really needed, it doesn't harm anything,
> but IMHO it doesn't really brings us benefit.
>

I agree, this is not intended to be a functional change. The cleanup benefit is
on the side of the CPU hotplug core API to provide better consistency in terms
of the API naming pattern, but the current callsites that consume this API
should see no functional difference as a result of this change. The consistency
will help future callsites though!

Regards,
Srivatsa