Re: [PATCH] cpu/hotplug: Rename cpuhp_remove_multi_state to be symmetric with setup
From: Srivatsa S. Bhat
Date: Fri Nov 27 2026 - 02:45:59 EST
On Fri, Nov 27, 2026 at 01:07:40PM +0530, Srivatsa S. Bhat 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].
>
I think the prefix in the patch title should have been "treewide:" instead of
"cpu/hotplug" given that it does a treewide-sweep to perform the rename.
I can do that in a v2 later if there are other any other comments/suggestions to
address as well.
Thank you!
> Documentation/core-api/cpu_hotplug.rst | 6 +++---
> drivers/block/zram/zram_drv.c | 6 +++---
> drivers/devfreq/event/rockchip-dfi.c | 2 +-
> drivers/fpga/dfl-fme-perf.c | 4 ++--
> drivers/hwtracing/coresight/coresight-trbe.c | 4 ++--
> drivers/hwtracing/ptt/hisi_ptt.c | 4 ++--
> drivers/iommu/iova.c | 2 +-
> drivers/md/raid5.c | 4 ++--
> drivers/net/ethernet/ibm/ibmvnic.c | 8 ++++----
> drivers/net/ethernet/marvell/mvneta.c | 8 ++++----
> drivers/net/virtio_net.c | 8 ++++----
> drivers/nvdimm/nd_perf.c | 6 +++---
> drivers/perf/alibaba_uncore_drw_pmu.c | 4 ++--
> drivers/perf/arm-ccn.c | 4 ++--
> drivers/perf/arm-cmn.c | 4 ++--
> drivers/perf/arm-ni.c | 4 ++--
> drivers/perf/arm_cspmu/arm_cspmu.c | 2 +-
> drivers/perf/arm_dmc620_pmu.c | 4 ++--
> drivers/perf/arm_dsu_pmu.c | 4 ++--
> drivers/perf/arm_smmuv3_pmu.c | 4 ++--
> drivers/perf/arm_spe_pmu.c | 4 ++--
> drivers/perf/cxl_pmu.c | 4 ++--
> drivers/perf/dwc_pcie_pmu.c | 4 ++--
> drivers/perf/fsl_imx8_ddr_perf.c | 4 ++--
> drivers/perf/fsl_imx9_ddr_perf.c | 4 ++--
> drivers/perf/fujitsu_uncore_pmu.c | 4 ++--
> drivers/perf/hisilicon/hisi_pcie_pmu.c | 4 ++--
> drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c | 4 ++--
> drivers/perf/hisilicon/hisi_uncore_pmu.c | 2 +-
> drivers/perf/hisilicon/hns3_pmu.c | 4 ++--
> drivers/perf/marvell_cn10k_ddr_pmu.c | 4 ++--
> drivers/perf/marvell_cn10k_tad_pmu.c | 4 ++--
> drivers/perf/marvell_pem_pmu.c | 4 ++--
> drivers/perf/nvidia_t410_c2c_pmu.c | 2 +-
> drivers/perf/nvidia_t410_cmem_latency_pmu.c | 2 +-
> drivers/perf/thunderx2_pmu.c | 4 ++--
> drivers/scsi/lpfc/lpfc_init.c | 4 ++--
> include/linux/cpuhotplug.h | 4 ++--
> kernel/padata.c | 2 +-
> kernel/trace/trace.c | 2 +-
> mm/zswap.c | 2 +-
> 41 files changed, 82 insertions(+), 82 deletions(-)
>
Regards,
Srivatsa