Netdev List
 help / color / mirror / Atom feed
From: Richard Cheng <icheng@nvidia.com>
To: "Srivatsa S. Bhat (Microsoft)" <srivatsa@csail.mit.edu>
Cc: "Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Minchan Kim" <minchan@kernel.org>,
	"Sergey Senozhatsky" <senozhatsky@chromium.org>,
	"Jens Axboe" <axboe@kernel.dk>,
	"Chanwoo Choi" <cw00.choi@samsung.com>,
	"MyungJoo Ham" <myungjoo.ham@samsung.com>,
	"Kyungmin Park" <kyungmin.park@samsung.com>,
	"Heiko Stuebner" <heiko@sntech.de>,
	"Xu Yilun" <yilun.xu@intel.com>, "Tom Rix" <trix@redhat.com>,
	"Moritz Fischer" <mdf@kernel.org>,
	"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>,
	"Sizhe Liu" <liusizhe5@huawei.com>,
	"Robin Murphy" <robin.murphy@arm.com>,
	"Joerg Roedel (AMD)" <joro@8bytes.org>,
	"Will Deacon" <will@kernel.org>, "Song Liu" <song@kernel.org>,
	"Yu Kuai" <yukuai@fygo.io>, "Li Nan" <magiclinan@didiglobal.com>,
	"Xiao Ni" <xiao@kernel.org>, "Haren Myneni" <haren@linux.ibm.com>,
	"Rick Lindsley" <ricklind@linux.ibm.com>,
	"Nick Child" <nnac123@linux.ibm.com>,
	"Madhavan Srinivasan" <maddy@linux.ibm.com>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	"Nicholas Piggin" <npiggin@gmail.com>,
	"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
	"Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
	"Shrikanth Hegde" <sshegde@linux.ibm.com>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Marcin Wojtas" <marcin.s.wojtas@gmail.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Dan Williams" <djbw@kernel.org>,
	"Vishal Verma" <vishal.l.verma@intel.com>,
	"Dave Jiang" <dave.jiang@intel.com>,
	"Alison Schofield" <alison.schofield@intel.com>,
	"Ira Weiny" <iweiny@kernel.org>,
	"Shuai Xue" <xueshuai@linux.alibaba.com>,
	"Mark Rutland" <mark.rutland@arm.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Jing Zhang" <renyu.zj@linux.alibaba.com>,
	"Frank Li" <Frank.li@nxp.com>, "Xu Yang" <xu.yang_2@nxp.com>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Fabio Estevam" <festevam@gmail.com>,
	"Yushan Wang" <wangyushan12@huawei.com>,
	"Jijie Shao" <shaojijie@huawei.com>,
	"Gowthami Thiagarajan" <gthiagarajan@marvell.com>,
	"Geetha sowjanya" <gakula@marvell.com>,
	"Justin Tee" <justin.tee@broadcom.com>,
	"Paul Ely" <paul.ely@broadcom.com>,
	"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
	"Martin K. Petersen" <mkp@kernel.org>,
	"Thomas Gleixner" <tglx@kernel.org>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Steffen Klassert" <steffen.klassert@secunet.com>,
	"Daniel Jordan" <daniel.m.jordan@oracle.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Masami Hiramatsu" <mhiramat@kernel.org>,
	"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>,
	"Johannes Weiner" <hannes@cmpxchg.org>,
	"Yosry Ahmed" <yosry@kernel.org>, "Nhat Pham" <nphamcs@gmail.com>,
	"Chengming Zhou" <chengming.zhou@linux.dev>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-block@vger.kernel.org, linux-pm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-fpga@vger.kernel.org,
	coresight@lists.linaro.org, iommu@lists.linux.dev,
	linux-raid@vger.kernel.org, netdev@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux.dev,
	nvdimm@lists.linux.dev, linux-perf-users@vger.kernel.org,
	linux-cxl@vger.kernel.org, imx@lists.linux.dev,
	linux-scsi@vger.kernel.org, linux-crypto@vger.kernel.org,
	linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org,
	"Prasanna Kumar T S M" <ptsm@linux.microsoft.com>,
	"Saurabh Sengar" <ssengar@linux.microsoft.com>
Subject: Re: [PATCH] cpu/hotplug: Rename cpuhp_remove_multi_state to be symmetric with setup
Date: Fri, 27 Nov 2026 16:09:11 +0800	[thread overview]
Message-ID: <awk6TGp9riwDD55i@MWDK4CY14F> (raw)
In-Reply-To: <20261127-fix-rename_cpuhp_remove_multi_state-v1-1-097db4564cbd@csail.mit.edu>

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@csail.mit.edu>

Hi Srivatsa,

Not sure whether this is really needed, it doesn't harm anything,
but IMHO it doesn't really brings us benefit.

Best regards,
Richard Cheng.

> ---
> Performing the API rename in
> Documentation/translations/zh_CN/core-api/cpu_hotplug.rst is left as a
> to-do, as I don't know how to edit that file correctly, and didn't want
> to mess up the translation in the process. If someone can help do the
> rename in that file safely, that would be much appreciated!
> ---
>  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(-)
> 
> diff --git a/Documentation/core-api/cpu_hotplug.rst b/Documentation/core-api/cpu_hotplug.rst
> index f8b3f59a3d5f..a387ccb08eef 100644
> --- a/Documentation/core-api/cpu_hotplug.rst
> +++ b/Documentation/core-api/cpu_hotplug.rst
> @@ -471,7 +471,7 @@ To remove a previously set up state, the following functions are provided:
>  * cpuhp_remove_state(state)
>  * cpuhp_remove_state_nocalls(state)
>  * cpuhp_remove_state_nocalls_cpuslocked(state)
> -* cpuhp_remove_multi_state(state)
> +* cpuhp_remove_state_multi(state)
>  
>  The @state argument is either a statically allocated state or the state
>  number which was allocated in the dynamic range by cpuhp_setup_state*(). If
> @@ -481,7 +481,7 @@ available for dynamic allocation again.
>  The functions differ in the way how the installed callbacks are treated:
>  
>    * cpuhp_remove_state_nocalls(), cpuhp_remove_state_nocalls_cpuslocked()
> -    and cpuhp_remove_multi_state() only remove the callbacks.
> +    and cpuhp_remove_state_multi() only remove the callbacks.
>  
>    * cpuhp_remove_state() removes the callbacks and invokes the teardown
>      callback (if not NULL) for all online CPUs which have currently a state
> @@ -611,7 +611,7 @@ ONLINE section for notifications on online and offline operation::
>     ....
>     cpuhp_state_remove_instance(state, &inst2->node);
>     ....
> -   cpuhp_remove_multi_state(state);
> +   cpuhp_remove_state_multi(state);
>  
>  
>  Testing of hotplug states
> diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
> index ab064c84b092..d152c356bd6a 100644
> --- a/drivers/block/zram/zram_drv.c
> +++ b/drivers/block/zram/zram_drv.c
> @@ -3270,7 +3270,7 @@ static void destroy_devices(void)
>  	zram_debugfs_destroy();
>  	idr_destroy(&zram_index_idr);
>  	unregister_blkdev(zram_major, "zram");
> -	cpuhp_remove_multi_state(CPUHP_ZCOMP_PREPARE);
> +	cpuhp_remove_state_multi(CPUHP_ZCOMP_PREPARE);
>  }
>  
>  static int __init zram_init(void)
> @@ -3288,7 +3288,7 @@ static int __init zram_init(void)
>  	ret = class_register(&zram_control_class);
>  	if (ret) {
>  		pr_err("Unable to register zram-control class\n");
> -		cpuhp_remove_multi_state(CPUHP_ZCOMP_PREPARE);
> +		cpuhp_remove_state_multi(CPUHP_ZCOMP_PREPARE);
>  		return ret;
>  	}
>  
> @@ -3297,7 +3297,7 @@ static int __init zram_init(void)
>  	if (zram_major <= 0) {
>  		pr_err("Unable to get major number\n");
>  		class_unregister(&zram_control_class);
> -		cpuhp_remove_multi_state(CPUHP_ZCOMP_PREPARE);
> +		cpuhp_remove_state_multi(CPUHP_ZCOMP_PREPARE);
>  		return -EBUSY;
>  	}
>  
> diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event/rockchip-dfi.c
> index 16b25779d2f8..137adb1b7d27 100644
> --- a/drivers/devfreq/event/rockchip-dfi.c
> +++ b/drivers/devfreq/event/rockchip-dfi.c
> @@ -614,7 +614,7 @@ static void rockchip_ddr_cpuhp_remove_state(void *data)
>  {
>  	struct rockchip_dfi *dfi = data;
>  
> -	cpuhp_remove_multi_state(dfi->cpuhp_state);
> +	cpuhp_remove_state_multi(dfi->cpuhp_state);
>  
>  	rockchip_dfi_disable(dfi);
>  }
> diff --git a/drivers/fpga/dfl-fme-perf.c b/drivers/fpga/dfl-fme-perf.c
> index a0e3abc64c9e..9cd5327ceab4 100644
> --- a/drivers/fpga/dfl-fme-perf.c
> +++ b/drivers/fpga/dfl-fme-perf.c
> @@ -998,7 +998,7 @@ static int fme_perf_init(struct platform_device *pdev,
>  pmu_register_err:
>  	cpuhp_state_remove_instance_nocalls(priv->cpuhp_state, &priv->node);
>  cpuhp_instance_err:
> -	cpuhp_remove_multi_state(priv->cpuhp_state);
> +	cpuhp_remove_state_multi(priv->cpuhp_state);
>  	return ret;
>  }
>  
> @@ -1009,7 +1009,7 @@ static void fme_perf_uinit(struct platform_device *pdev,
>  
>  	fme_perf_pmu_unregister(priv);
>  	cpuhp_state_remove_instance_nocalls(priv->cpuhp_state, &priv->node);
> -	cpuhp_remove_multi_state(priv->cpuhp_state);
> +	cpuhp_remove_state_multi(priv->cpuhp_state);
>  }
>  
>  const struct dfl_feature_id fme_perf_id_table[] = {
> diff --git a/drivers/hwtracing/coresight/coresight-trbe.c b/drivers/hwtracing/coresight/coresight-trbe.c
> index 3fa663c7f026..06d2c5b93f63 100644
> --- a/drivers/hwtracing/coresight/coresight-trbe.c
> +++ b/drivers/hwtracing/coresight/coresight-trbe.c
> @@ -1524,7 +1524,7 @@ static int arm_trbe_probe_cpuhp(struct trbe_drvdata *drvdata)
>  
>  	ret = cpuhp_state_add_instance(trbe_online, &drvdata->hotplug_node);
>  	if (ret) {
> -		cpuhp_remove_multi_state(trbe_online);
> +		cpuhp_remove_state_multi(trbe_online);
>  		return ret;
>  	}
>  	drvdata->trbe_online = trbe_online;
> @@ -1534,7 +1534,7 @@ static int arm_trbe_probe_cpuhp(struct trbe_drvdata *drvdata)
>  static void arm_trbe_remove_cpuhp(struct trbe_drvdata *drvdata)
>  {
>  	cpuhp_state_remove_instance(drvdata->trbe_online, &drvdata->hotplug_node);
> -	cpuhp_remove_multi_state(drvdata->trbe_online);
> +	cpuhp_remove_state_multi(drvdata->trbe_online);
>  }
>  
>  static int arm_trbe_probe_irq(struct platform_device *pdev,
> diff --git a/drivers/hwtracing/ptt/hisi_ptt.c b/drivers/hwtracing/ptt/hisi_ptt.c
> index 6ed65b44a4af..7d7dbc0916c1 100644
> --- a/drivers/hwtracing/ptt/hisi_ptt.c
> +++ b/drivers/hwtracing/ptt/hisi_ptt.c
> @@ -1425,7 +1425,7 @@ static int __init hisi_ptt_init(void)
>  
>  	ret = pci_register_driver(&hisi_ptt_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(hisi_ptt_pmu_online);
> +		cpuhp_remove_state_multi(hisi_ptt_pmu_online);
>  
>  	return ret;
>  }
> @@ -1434,7 +1434,7 @@ module_init(hisi_ptt_init);
>  static void __exit hisi_ptt_exit(void)
>  {
>  	pci_unregister_driver(&hisi_ptt_driver);
> -	cpuhp_remove_multi_state(hisi_ptt_pmu_online);
> +	cpuhp_remove_state_multi(hisi_ptt_pmu_online);
>  }
>  module_exit(hisi_ptt_exit);
>  
> diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c
> index b710e5ad37e2..266d9ce3a712 100644
> --- a/drivers/iommu/iova.c
> +++ b/drivers/iommu/iova.c
> @@ -998,7 +998,7 @@ void iova_cache_put(void)
>  	}
>  	iova_cache_users--;
>  	if (!iova_cache_users) {
> -		cpuhp_remove_multi_state(CPUHP_IOMMU_IOVA_DEAD);
> +		cpuhp_remove_state_multi(CPUHP_IOMMU_IOVA_DEAD);
>  		kmem_cache_destroy(iova_cache);
>  		kmem_cache_destroy(iova_magazine_cache);
>  	}
> diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
> index d52adf81065a..5ffa3583fc11 100644
> --- a/drivers/md/raid5.c
> +++ b/drivers/md/raid5.c
> @@ -9402,7 +9402,7 @@ static int __init raid5_init(void)
>  err_unregister_raid6:
>  	unregister_md_submodule(&raid6_personality.head);
>  err_cpuhp_remove:
> -	cpuhp_remove_multi_state(CPUHP_MD_RAID5_PREPARE);
> +	cpuhp_remove_state_multi(CPUHP_MD_RAID5_PREPARE);
>  err_destroy_wq:
>  	destroy_workqueue(raid5_wq);
>  	return ret;
> @@ -9413,7 +9413,7 @@ static void __exit raid5_exit(void)
>  	unregister_md_submodule(&raid6_personality.head);
>  	unregister_md_submodule(&raid5_personality.head);
>  	unregister_md_submodule(&raid4_personality.head);
> -	cpuhp_remove_multi_state(CPUHP_MD_RAID5_PREPARE);
> +	cpuhp_remove_state_multi(CPUHP_MD_RAID5_PREPARE);
>  	destroy_workqueue(raid5_wq);
>  }
>  
> diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
> index 5a510eed335e..73b3fb306333 100644
> --- a/drivers/net/ethernet/ibm/ibmvnic.c
> +++ b/drivers/net/ethernet/ibm/ibmvnic.c
> @@ -6779,9 +6779,9 @@ static int __init ibmvnic_module_init(void)
>  
>  	return 0;
>  err_vio_register:
> -	cpuhp_remove_multi_state(CPUHP_IBMVNIC_DEAD);
> +	cpuhp_remove_state_multi(CPUHP_IBMVNIC_DEAD);
>  err_dead:
> -	cpuhp_remove_multi_state(ibmvnic_online);
> +	cpuhp_remove_state_multi(ibmvnic_online);
>  out:
>  	return ret;
>  }
> @@ -6789,8 +6789,8 @@ static int __init ibmvnic_module_init(void)
>  static void __exit ibmvnic_module_exit(void)
>  {
>  	vio_unregister_driver(&ibmvnic_driver);
> -	cpuhp_remove_multi_state(CPUHP_IBMVNIC_DEAD);
> -	cpuhp_remove_multi_state(ibmvnic_online);
> +	cpuhp_remove_state_multi(CPUHP_IBMVNIC_DEAD);
> +	cpuhp_remove_state_multi(ibmvnic_online);
>  }
>  
>  module_init(ibmvnic_module_init);
> diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
> index 915c4c35364a..7f7a090e78b6 100644
> --- a/drivers/net/ethernet/marvell/mvneta.c
> +++ b/drivers/net/ethernet/marvell/mvneta.c
> @@ -5967,9 +5967,9 @@ static int __init mvneta_driver_init(void)
>  	return 0;
>  
>  err:
> -	cpuhp_remove_multi_state(CPUHP_NET_MVNETA_DEAD);
> +	cpuhp_remove_state_multi(CPUHP_NET_MVNETA_DEAD);
>  err_dead:
> -	cpuhp_remove_multi_state(online_hpstate);
> +	cpuhp_remove_state_multi(online_hpstate);
>  out:
>  	return ret;
>  }
> @@ -5978,8 +5978,8 @@ module_init(mvneta_driver_init);
>  static void __exit mvneta_driver_exit(void)
>  {
>  	platform_driver_unregister(&mvneta_driver);
> -	cpuhp_remove_multi_state(CPUHP_NET_MVNETA_DEAD);
> -	cpuhp_remove_multi_state(online_hpstate);
> +	cpuhp_remove_state_multi(CPUHP_NET_MVNETA_DEAD);
> +	cpuhp_remove_state_multi(online_hpstate);
>  }
>  module_exit(mvneta_driver_exit);
>  
> diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
> index 1cd64f9e12e7..b11f2180de47 100644
> --- a/drivers/net/virtio_net.c
> +++ b/drivers/net/virtio_net.c
> @@ -7354,9 +7354,9 @@ static __init int virtio_net_driver_init(void)
>  		goto err_virtio;
>  	return 0;
>  err_virtio:
> -	cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD);
> +	cpuhp_remove_state_multi(CPUHP_VIRT_NET_DEAD);
>  err_dead:
> -	cpuhp_remove_multi_state(virtionet_online);
> +	cpuhp_remove_state_multi(virtionet_online);
>  out:
>  	return ret;
>  }
> @@ -7365,8 +7365,8 @@ module_init(virtio_net_driver_init);
>  static __exit void virtio_net_driver_exit(void)
>  {
>  	unregister_virtio_driver(&virtio_net_driver);
> -	cpuhp_remove_multi_state(CPUHP_VIRT_NET_DEAD);
> -	cpuhp_remove_multi_state(virtionet_online);
> +	cpuhp_remove_state_multi(CPUHP_VIRT_NET_DEAD);
> +	cpuhp_remove_state_multi(virtionet_online);
>  }
>  module_exit(virtio_net_driver_exit);
>  
> diff --git a/drivers/nvdimm/nd_perf.c b/drivers/nvdimm/nd_perf.c
> index 9e497cae65b3..aec1f3d71fc4 100644
> --- a/drivers/nvdimm/nd_perf.c
> +++ b/drivers/nvdimm/nd_perf.c
> @@ -245,7 +245,7 @@ static int nvdimm_pmu_cpu_hotplug_init(struct nvdimm_pmu *nd_pmu)
>  	/* Register the pmu instance for cpu hotplug */
>  	rc = cpuhp_state_add_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node);
>  	if (rc) {
> -		cpuhp_remove_multi_state(nd_pmu->cpuhp_state);
> +		cpuhp_remove_state_multi(nd_pmu->cpuhp_state);
>  		return rc;
>  	}
>  
> @@ -253,7 +253,7 @@ static int nvdimm_pmu_cpu_hotplug_init(struct nvdimm_pmu *nd_pmu)
>  	rc = create_cpumask_attr_group(nd_pmu);
>  	if (rc) {
>  		cpuhp_state_remove_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node);
> -		cpuhp_remove_multi_state(nd_pmu->cpuhp_state);
> +		cpuhp_remove_state_multi(nd_pmu->cpuhp_state);
>  		return rc;
>  	}
>  
> @@ -263,7 +263,7 @@ static int nvdimm_pmu_cpu_hotplug_init(struct nvdimm_pmu *nd_pmu)
>  static void nvdimm_pmu_free_hotplug_memory(struct nvdimm_pmu *nd_pmu)
>  {
>  	cpuhp_state_remove_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node);
> -	cpuhp_remove_multi_state(nd_pmu->cpuhp_state);
> +	cpuhp_remove_state_multi(nd_pmu->cpuhp_state);
>  
>  	if (nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR])
>  		kfree(nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR]->attrs);
> diff --git a/drivers/perf/alibaba_uncore_drw_pmu.c b/drivers/perf/alibaba_uncore_drw_pmu.c
> index c47c6ac170b2..e114330d6ea8 100644
> --- a/drivers/perf/alibaba_uncore_drw_pmu.c
> +++ b/drivers/perf/alibaba_uncore_drw_pmu.c
> @@ -799,7 +799,7 @@ static int __init ali_drw_pmu_init(void)
>  
>  	ret = platform_driver_register(&ali_drw_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(ali_drw_cpuhp_state_num);
> +		cpuhp_remove_state_multi(ali_drw_cpuhp_state_num);
>  
>  	return ret;
>  }
> @@ -807,7 +807,7 @@ static int __init ali_drw_pmu_init(void)
>  static void __exit ali_drw_pmu_exit(void)
>  {
>  	platform_driver_unregister(&ali_drw_pmu_driver);
> -	cpuhp_remove_multi_state(ali_drw_cpuhp_state_num);
> +	cpuhp_remove_state_multi(ali_drw_cpuhp_state_num);
>  }
>  
>  module_init(ali_drw_pmu_init);
> diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c
> index 0c69165e0041..86d6edd18c84 100644
> --- a/drivers/perf/arm-ccn.c
> +++ b/drivers/perf/arm-ccn.c
> @@ -1543,14 +1543,14 @@ static int __init arm_ccn_init(void)
>  
>  	ret = platform_driver_register(&arm_ccn_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_CCN_ONLINE);
> +		cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_CCN_ONLINE);
>  	return ret;
>  }
>  
>  static void __exit arm_ccn_exit(void)
>  {
>  	platform_driver_unregister(&arm_ccn_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_CCN_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_CCN_ONLINE);
>  }
>  
>  module_init(arm_ccn_init);
> diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c
> index 68a096c1fe6b..787de602b60c 100644
> --- a/drivers/perf/arm-cmn.c
> +++ b/drivers/perf/arm-cmn.c
> @@ -2969,7 +2969,7 @@ static int __init arm_cmn_init(void)
>  
>  	ret = platform_driver_register(&arm_cmn_driver);
>  	if (ret) {
> -		cpuhp_remove_multi_state(arm_cmn_hp_state);
> +		cpuhp_remove_state_multi(arm_cmn_hp_state);
>  		debugfs_remove(arm_cmn_debugfs);
>  	}
>  	return ret;
> @@ -2978,7 +2978,7 @@ static int __init arm_cmn_init(void)
>  static void __exit arm_cmn_exit(void)
>  {
>  	platform_driver_unregister(&arm_cmn_driver);
> -	cpuhp_remove_multi_state(arm_cmn_hp_state);
> +	cpuhp_remove_state_multi(arm_cmn_hp_state);
>  	debugfs_remove(arm_cmn_debugfs);
>  }
>  
> diff --git a/drivers/perf/arm-ni.c b/drivers/perf/arm-ni.c
> index 1f8eecf8ca11..6d3e63ba8ca8 100644
> --- a/drivers/perf/arm-ni.c
> +++ b/drivers/perf/arm-ni.c
> @@ -844,14 +844,14 @@ static int __init arm_ni_init(void)
>  
>  	ret = platform_driver_register(&arm_ni_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(arm_ni_hp_state);
> +		cpuhp_remove_state_multi(arm_ni_hp_state);
>  	return ret;
>  }
>  
>  static void __exit arm_ni_exit(void)
>  {
>  	platform_driver_unregister(&arm_ni_driver);
> -	cpuhp_remove_multi_state(arm_ni_hp_state);
> +	cpuhp_remove_state_multi(arm_ni_hp_state);
>  }
>  
>  module_init(arm_ni_init);
> diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c
> index d0b29213f451..6a43a21f2953 100644
> --- a/drivers/perf/arm_cspmu/arm_cspmu.c
> +++ b/drivers/perf/arm_cspmu/arm_cspmu.c
> @@ -1449,7 +1449,7 @@ static int __init arm_cspmu_init(void)
>  static void __exit arm_cspmu_exit(void)
>  {
>  	platform_driver_unregister(&arm_cspmu_driver);
> -	cpuhp_remove_multi_state(arm_cspmu_cpuhp_state);
> +	cpuhp_remove_state_multi(arm_cspmu_cpuhp_state);
>  }
>  
>  int arm_cspmu_impl_register(const struct arm_cspmu_impl_match *impl_match)
> diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c
> index 9a7b05b48da0..7c33f09bf236 100644
> --- a/drivers/perf/arm_dmc620_pmu.c
> +++ b/drivers/perf/arm_dmc620_pmu.c
> @@ -765,7 +765,7 @@ static int __init dmc620_pmu_init(void)
>  
>  	ret = platform_driver_register(&dmc620_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(cpuhp_state_num);
> +		cpuhp_remove_state_multi(cpuhp_state_num);
>  
>  	return ret;
>  }
> @@ -773,7 +773,7 @@ static int __init dmc620_pmu_init(void)
>  static void __exit dmc620_pmu_exit(void)
>  {
>  	platform_driver_unregister(&dmc620_pmu_driver);
> -	cpuhp_remove_multi_state(cpuhp_state_num);
> +	cpuhp_remove_state_multi(cpuhp_state_num);
>  }
>  
>  module_init(dmc620_pmu_init);
> diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c
> index 751bfed944a9..c737e492175a 100644
> --- a/drivers/perf/arm_dsu_pmu.c
> +++ b/drivers/perf/arm_dsu_pmu.c
> @@ -852,7 +852,7 @@ static int __init dsu_pmu_init(void)
>  	dsu_pmu_cpuhp_state = ret;
>  	ret = platform_driver_register(&dsu_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(dsu_pmu_cpuhp_state);
> +		cpuhp_remove_state_multi(dsu_pmu_cpuhp_state);
>  
>  	return ret;
>  }
> @@ -860,7 +860,7 @@ static int __init dsu_pmu_init(void)
>  static void __exit dsu_pmu_exit(void)
>  {
>  	platform_driver_unregister(&dsu_pmu_driver);
> -	cpuhp_remove_multi_state(dsu_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(dsu_pmu_cpuhp_state);
>  }
>  
>  module_init(dsu_pmu_init);
> diff --git a/drivers/perf/arm_smmuv3_pmu.c b/drivers/perf/arm_smmuv3_pmu.c
> index 97440b6233c6..c328238c215a 100644
> --- a/drivers/perf/arm_smmuv3_pmu.c
> +++ b/drivers/perf/arm_smmuv3_pmu.c
> @@ -1016,7 +1016,7 @@ static int __init arm_smmu_pmu_init(void)
>  
>  	ret = platform_driver_register(&smmu_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(cpuhp_state_num);
> +		cpuhp_remove_state_multi(cpuhp_state_num);
>  
>  	return ret;
>  }
> @@ -1025,7 +1025,7 @@ module_init(arm_smmu_pmu_init);
>  static void __exit arm_smmu_pmu_exit(void)
>  {
>  	platform_driver_unregister(&smmu_pmu_driver);
> -	cpuhp_remove_multi_state(cpuhp_state_num);
> +	cpuhp_remove_state_multi(cpuhp_state_num);
>  }
>  
>  module_exit(arm_smmu_pmu_exit);
> diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c
> index 707778c67dab..30a946fccb94 100644
> --- a/drivers/perf/arm_spe_pmu.c
> +++ b/drivers/perf/arm_spe_pmu.c
> @@ -1442,7 +1442,7 @@ static int __init arm_spe_pmu_init(void)
>  
>  	ret = platform_driver_register(&arm_spe_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(arm_spe_pmu_online);
> +		cpuhp_remove_state_multi(arm_spe_pmu_online);
>  
>  	return ret;
>  }
> @@ -1450,7 +1450,7 @@ static int __init arm_spe_pmu_init(void)
>  static void __exit arm_spe_pmu_exit(void)
>  {
>  	platform_driver_unregister(&arm_spe_pmu_driver);
> -	cpuhp_remove_multi_state(arm_spe_pmu_online);
> +	cpuhp_remove_state_multi(arm_spe_pmu_online);
>  }
>  
>  module_init(arm_spe_pmu_init);
> diff --git a/drivers/perf/cxl_pmu.c b/drivers/perf/cxl_pmu.c
> index ce4097c4f64e..7b354c190d55 100644
> --- a/drivers/perf/cxl_pmu.c
> +++ b/drivers/perf/cxl_pmu.c
> @@ -1138,7 +1138,7 @@ static __init int cxl_pmu_init(void)
>  
>  	rc = cxl_driver_register(&cxl_pmu_driver);
>  	if (rc)
> -		cpuhp_remove_multi_state(cxl_pmu_cpuhp_state_num);
> +		cpuhp_remove_state_multi(cxl_pmu_cpuhp_state_num);
>  
>  	return rc;
>  }
> @@ -1146,7 +1146,7 @@ static __init int cxl_pmu_init(void)
>  static __exit void cxl_pmu_exit(void)
>  {
>  	cxl_driver_unregister(&cxl_pmu_driver);
> -	cpuhp_remove_multi_state(cxl_pmu_cpuhp_state_num);
> +	cpuhp_remove_state_multi(cxl_pmu_cpuhp_state_num);
>  }
>  
>  MODULE_DESCRIPTION("CXL Performance Monitor Driver");
> diff --git a/drivers/perf/dwc_pcie_pmu.c b/drivers/perf/dwc_pcie_pmu.c
> index 039730a3b80d..3b715294e2f5 100644
> --- a/drivers/perf/dwc_pcie_pmu.c
> +++ b/drivers/perf/dwc_pcie_pmu.c
> @@ -928,7 +928,7 @@ static int __init dwc_pcie_pmu_init(void)
>  err_unregister_driver:
>  	platform_driver_unregister(&dwc_pcie_pmu_driver);
>  err_remove_cpuhp:
> -	cpuhp_remove_multi_state(dwc_pcie_pmu_hp_state);
> +	cpuhp_remove_state_multi(dwc_pcie_pmu_hp_state);
>  err_cleanup:
>  	dwc_pcie_cleanup_devices();
>  	return ret;
> @@ -940,7 +940,7 @@ static void __exit dwc_pcie_pmu_exit(void)
>  		bus_unregister_notifier(&pci_bus_type, &dwc_pcie_pmu_nb);
>  	dwc_pcie_cleanup_devices();
>  	platform_driver_unregister(&dwc_pcie_pmu_driver);
> -	cpuhp_remove_multi_state(dwc_pcie_pmu_hp_state);
> +	cpuhp_remove_state_multi(dwc_pcie_pmu_hp_state);
>  }
>  
>  module_init(dwc_pcie_pmu_init);
> diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c
> index 39b25d70942d..af9319ef2f5c 100644
> --- a/drivers/perf/fsl_imx8_ddr_perf.c
> +++ b/drivers/perf/fsl_imx8_ddr_perf.c
> @@ -877,7 +877,7 @@ static int ddr_perf_probe(struct platform_device *pdev)
>  ddr_perf_err:
>  	cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node);
>  cpuhp_instance_err:
> -	cpuhp_remove_multi_state(pmu->cpuhp_state);
> +	cpuhp_remove_state_multi(pmu->cpuhp_state);
>  idr_free:
>  	ida_free(ida, pmu->id);
>  	dev_warn(&pdev->dev, "i.MX8 DDR Perf PMU failed (%d), disabled\n", ret);
> @@ -889,7 +889,7 @@ static void ddr_perf_remove(struct platform_device *pdev)
>  	struct ddr_pmu *pmu = platform_get_drvdata(pdev);
>  
>  	cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node);
> -	cpuhp_remove_multi_state(pmu->cpuhp_state);
> +	cpuhp_remove_state_multi(pmu->cpuhp_state);
>  
>  	perf_pmu_unregister(&pmu->pmu);
>  
> diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c
> index 739c6567cd68..c09eeb9b6a21 100644
> --- a/drivers/perf/fsl_imx9_ddr_perf.c
> +++ b/drivers/perf/fsl_imx9_ddr_perf.c
> @@ -849,7 +849,7 @@ static int ddr_perf_probe(struct platform_device *pdev)
>  ddr_perf_err:
>  	cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node);
>  cpuhp_instance_err:
> -	cpuhp_remove_multi_state(pmu->cpuhp_state);
> +	cpuhp_remove_state_multi(pmu->cpuhp_state);
>  cpuhp_state_err:
>  format_string_err:
>  	ida_free(&ddr_ida, pmu->id);
> @@ -862,7 +862,7 @@ static void ddr_perf_remove(struct platform_device *pdev)
>  	struct ddr_pmu *pmu = platform_get_drvdata(pdev);
>  
>  	cpuhp_state_remove_instance_nocalls(pmu->cpuhp_state, &pmu->node);
> -	cpuhp_remove_multi_state(pmu->cpuhp_state);
> +	cpuhp_remove_state_multi(pmu->cpuhp_state);
>  
>  	perf_pmu_unregister(&pmu->pmu);
>  
> diff --git a/drivers/perf/fujitsu_uncore_pmu.c b/drivers/perf/fujitsu_uncore_pmu.c
> index f6165eb44c07..91ee608a5fd5 100644
> --- a/drivers/perf/fujitsu_uncore_pmu.c
> +++ b/drivers/perf/fujitsu_uncore_pmu.c
> @@ -593,7 +593,7 @@ static int __init fujitsu_uncore_pmu_init(void)
>  
>  	ret = platform_driver_register(&fujitsu_uncore_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(uncore_pmu_cpuhp_state);
> +		cpuhp_remove_state_multi(uncore_pmu_cpuhp_state);
>  
>  	return ret;
>  }
> @@ -601,7 +601,7 @@ static int __init fujitsu_uncore_pmu_init(void)
>  static void __exit fujitsu_uncore_pmu_exit(void)
>  {
>  	platform_driver_unregister(&fujitsu_uncore_pmu_driver);
> -	cpuhp_remove_multi_state(uncore_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(uncore_pmu_cpuhp_state);
>  }
>  
>  module_init(fujitsu_uncore_pmu_init);
> diff --git a/drivers/perf/hisilicon/hisi_pcie_pmu.c b/drivers/perf/hisilicon/hisi_pcie_pmu.c
> index 2414f222afcd..0c083a45fdd3 100644
> --- a/drivers/perf/hisilicon/hisi_pcie_pmu.c
> +++ b/drivers/perf/hisilicon/hisi_pcie_pmu.c
> @@ -989,7 +989,7 @@ static int __init hisi_pcie_module_init(void)
>  
>  	ret = pci_register_driver(&hisi_pcie_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HISI_PCIE_PMU_ONLINE);
> +		cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_HISI_PCIE_PMU_ONLINE);
>  
>  	return ret;
>  }
> @@ -998,7 +998,7 @@ module_init(hisi_pcie_module_init);
>  static void __exit hisi_pcie_module_exit(void)
>  {
>  	pci_unregister_driver(&hisi_pcie_pmu_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HISI_PCIE_PMU_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_HISI_PCIE_PMU_ONLINE);
>  }
>  module_exit(hisi_pcie_module_exit);
>  
> diff --git a/drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c b/drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
> index 167e369cf74c..78fb005907a2 100644
> --- a/drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
> +++ b/drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
> @@ -952,7 +952,7 @@ static int __init hisi_l3c_pmu_module_init(void)
>  
>  	ret = platform_driver_register(&hisi_l3c_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(hisi_l3c_pmu_cpuhp_state);
> +		cpuhp_remove_state_multi(hisi_l3c_pmu_cpuhp_state);
>  
>  	return ret;
>  }
> @@ -961,7 +961,7 @@ module_init(hisi_l3c_pmu_module_init);
>  static void __exit hisi_l3c_pmu_module_exit(void)
>  {
>  	platform_driver_unregister(&hisi_l3c_pmu_driver);
> -	cpuhp_remove_multi_state(hisi_l3c_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(hisi_l3c_pmu_cpuhp_state);
>  }
>  module_exit(hisi_l3c_pmu_module_exit);
>  
> diff --git a/drivers/perf/hisilicon/hisi_uncore_pmu.c b/drivers/perf/hisilicon/hisi_uncore_pmu.c
> index 346c87594614..9b7e39404510 100644
> --- a/drivers/perf/hisilicon/hisi_uncore_pmu.c
> +++ b/drivers/perf/hisilicon/hisi_uncore_pmu.c
> @@ -639,7 +639,7 @@ module_init(hisi_uncore_pmu_init);
>  
>  static void __exit hisi_uncore_pmu_exit(void)
>  {
> -	cpuhp_remove_multi_state(hisi_uncore_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(hisi_uncore_pmu_cpuhp_state);
>  }
>  module_exit(hisi_uncore_pmu_exit);
>  
> diff --git a/drivers/perf/hisilicon/hns3_pmu.c b/drivers/perf/hisilicon/hns3_pmu.c
> index 3069257ca79f..70eeae0b07e5 100644
> --- a/drivers/perf/hisilicon/hns3_pmu.c
> +++ b/drivers/perf/hisilicon/hns3_pmu.c
> @@ -1656,7 +1656,7 @@ static int __init hns3_pmu_module_init(void)
>  	ret = pci_register_driver(&hns3_pmu_driver);
>  	if (ret) {
>  		pr_err("failed to register pci driver, ret = %d.\n", ret);
> -		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HNS3_PMU_ONLINE);
> +		cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_HNS3_PMU_ONLINE);
>  	}
>  
>  	return ret;
> @@ -1666,7 +1666,7 @@ module_init(hns3_pmu_module_init);
>  static void __exit hns3_pmu_module_exit(void)
>  {
>  	pci_unregister_driver(&hns3_pmu_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HNS3_PMU_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_HNS3_PMU_ONLINE);
>  }
>  module_exit(hns3_pmu_module_exit);
>  
> diff --git a/drivers/perf/marvell_cn10k_ddr_pmu.c b/drivers/perf/marvell_cn10k_ddr_pmu.c
> index c699a4545935..5e1187ade225 100644
> --- a/drivers/perf/marvell_cn10k_ddr_pmu.c
> +++ b/drivers/perf/marvell_cn10k_ddr_pmu.c
> @@ -1345,7 +1345,7 @@ static int __init cn10k_ddr_pmu_init(void)
>  
>  	ret = platform_driver_register(&cn10k_ddr_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(
> +		cpuhp_remove_state_multi(
>  				CPUHP_AP_PERF_ARM_MARVELL_CN10K_DDR_ONLINE);
>  	return ret;
>  }
> @@ -1353,7 +1353,7 @@ static int __init cn10k_ddr_pmu_init(void)
>  static void __exit cn10k_ddr_pmu_exit(void)
>  {
>  	platform_driver_unregister(&cn10k_ddr_pmu_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_MARVELL_CN10K_DDR_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_MARVELL_CN10K_DDR_ONLINE);
>  }
>  
>  module_init(cn10k_ddr_pmu_init);
> diff --git a/drivers/perf/marvell_cn10k_tad_pmu.c b/drivers/perf/marvell_cn10k_tad_pmu.c
> index 2d64a3351433..46f3cecf46d8 100644
> --- a/drivers/perf/marvell_cn10k_tad_pmu.c
> +++ b/drivers/perf/marvell_cn10k_tad_pmu.c
> @@ -477,7 +477,7 @@ static int __init tad_pmu_init(void)
>  	tad_pmu_cpuhp_state = ret;
>  	ret = platform_driver_register(&tad_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(tad_pmu_cpuhp_state);
> +		cpuhp_remove_state_multi(tad_pmu_cpuhp_state);
>  
>  	return ret;
>  }
> @@ -485,7 +485,7 @@ static int __init tad_pmu_init(void)
>  static void __exit tad_pmu_exit(void)
>  {
>  	platform_driver_unregister(&tad_pmu_driver);
> -	cpuhp_remove_multi_state(tad_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(tad_pmu_cpuhp_state);
>  }
>  
>  module_init(tad_pmu_init);
> diff --git a/drivers/perf/marvell_pem_pmu.c b/drivers/perf/marvell_pem_pmu.c
> index f72837fa02f9..9b8a34220351 100644
> --- a/drivers/perf/marvell_pem_pmu.c
> +++ b/drivers/perf/marvell_pem_pmu.c
> @@ -407,14 +407,14 @@ static int __init pem_pmu_init(void)
>  
>  	ret = platform_driver_register(&pem_pmu_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_MRVL_PEM_ONLINE);
> +		cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_MRVL_PEM_ONLINE);
>  	return ret;
>  }
>  
>  static void __exit pem_pmu_exit(void)
>  {
>  	platform_driver_unregister(&pem_pmu_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_MRVL_PEM_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_MRVL_PEM_ONLINE);
>  }
>  
>  module_init(pem_pmu_init);
> diff --git a/drivers/perf/nvidia_t410_c2c_pmu.c b/drivers/perf/nvidia_t410_c2c_pmu.c
> index 1fc2adeb7195..209e90f76f3c 100644
> --- a/drivers/perf/nvidia_t410_c2c_pmu.c
> +++ b/drivers/perf/nvidia_t410_c2c_pmu.c
> @@ -1040,7 +1040,7 @@ static int __init nv_c2c_pmu_init(void)
>  static void __exit nv_c2c_pmu_exit(void)
>  {
>  	platform_driver_unregister(&nv_c2c_pmu_driver);
> -	cpuhp_remove_multi_state(nv_c2c_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(nv_c2c_pmu_cpuhp_state);
>  }
>  
>  module_init(nv_c2c_pmu_init);
> diff --git a/drivers/perf/nvidia_t410_cmem_latency_pmu.c b/drivers/perf/nvidia_t410_cmem_latency_pmu.c
> index f1eff644b0ba..d8c04f47e41b 100644
> --- a/drivers/perf/nvidia_t410_cmem_latency_pmu.c
> +++ b/drivers/perf/nvidia_t410_cmem_latency_pmu.c
> @@ -725,7 +725,7 @@ static int __init cmem_lat_pmu_init(void)
>  static void __exit cmem_lat_pmu_exit(void)
>  {
>  	platform_driver_unregister(&cmem_lat_pmu_driver);
> -	cpuhp_remove_multi_state(cmem_lat_pmu_cpuhp_state);
> +	cpuhp_remove_state_multi(cmem_lat_pmu_cpuhp_state);
>  }
>  
>  module_init(cmem_lat_pmu_init);
> diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c
> index 3cf079c7ff41..08c370bd5fa4 100644
> --- a/drivers/perf/thunderx2_pmu.c
> +++ b/drivers/perf/thunderx2_pmu.c
> @@ -1026,7 +1026,7 @@ static int __init tx2_uncore_driver_init(void)
>  	}
>  	ret = platform_driver_register(&tx2_uncore_driver);
>  	if (ret)
> -		cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE);
> +		cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE);
>  
>  	return ret;
>  }
> @@ -1035,7 +1035,7 @@ module_init(tx2_uncore_driver_init);
>  static void __exit tx2_uncore_driver_exit(void)
>  {
>  	platform_driver_unregister(&tx2_uncore_driver);
> -	cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE);
> +	cpuhp_remove_state_multi(CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE);
>  }
>  module_exit(tx2_uncore_driver_exit);
>  
> diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
> index 6df5f4e7c5d6..39da93377e03 100644
> --- a/drivers/scsi/lpfc/lpfc_init.c
> +++ b/drivers/scsi/lpfc/lpfc_init.c
> @@ -15715,7 +15715,7 @@ lpfc_init(void)
>  	return error;
>  
>  unwind:
> -	cpuhp_remove_multi_state(lpfc_cpuhp_state);
> +	cpuhp_remove_state_multi(lpfc_cpuhp_state);
>  cpuhp_failure:
>  	fc_release_transport(lpfc_transport_template);
>  	fc_release_transport(lpfc_vport_transport_template);
> @@ -15816,7 +15816,7 @@ lpfc_exit(void)
>  {
>  	misc_deregister(&lpfc_mgmt_dev);
>  	pci_unregister_driver(&lpfc_driver);
> -	cpuhp_remove_multi_state(lpfc_cpuhp_state);
> +	cpuhp_remove_state_multi(lpfc_cpuhp_state);
>  	fc_release_transport(lpfc_transport_template);
>  	fc_release_transport(lpfc_vport_transport_template);
>  	idr_destroy(&lpfc_hba_index);
> diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h
> index 1b6dba159bb2..c9563bb15e0a 100644
> --- a/include/linux/cpuhotplug.h
> +++ b/include/linux/cpuhotplug.h
> @@ -450,14 +450,14 @@ static inline void cpuhp_remove_state_nocalls_cpuslocked(enum cpuhp_state state)
>  }
>  
>  /**
> - * cpuhp_remove_multi_state - Remove hotplug multi state callback
> + * cpuhp_remove_state_multi - Remove hotplug multi state callback
>   * @state:	The state for which the calls are removed
>   *
>   * Removes the callback functions from a multi state. This is the reverse of
>   * cpuhp_setup_state_multi(). All instances should have been removed before
>   * invoking this function.
>   */
> -static inline void cpuhp_remove_multi_state(enum cpuhp_state state)
> +static inline void cpuhp_remove_state_multi(enum cpuhp_state state)
>  {
>  	__cpuhp_remove_state(state, false);
>  }
> diff --git a/kernel/padata.c b/kernel/padata.c
> index 5a113c667d4c..551c432b506f 100644
> --- a/kernel/padata.c
> +++ b/kernel/padata.c
> @@ -1111,7 +1111,7 @@ void __init padata_init(void)
>  
>  remove_online_state:
>  #ifdef CONFIG_HOTPLUG_CPU
> -	cpuhp_remove_multi_state(hp_online);
> +	cpuhp_remove_state_multi(hp_online);
>  err:
>  #endif
>  	pr_warn("padata: initialization failed\n");
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index 65b9d67647e5..8fd2de42efc4 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -10073,7 +10073,7 @@ __init static int tracer_alloc_buffers(void)
>  out_free_temp_buffer:
>  	ring_buffer_free(temp_buffer);
>  out_rm_hp_state:
> -	cpuhp_remove_multi_state(CPUHP_TRACE_RB_PREPARE);
> +	cpuhp_remove_state_multi(CPUHP_TRACE_RB_PREPARE);
>  out_free_cpumask:
>  	free_cpumask_var(global_trace.tracing_cpumask);
>  out_free_buffer_mask:
> diff --git a/mm/zswap.c b/mm/zswap.c
> index ae19e301fced..18eddeb2d69c 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -1880,7 +1880,7 @@ static int zswap_setup(void)
>  shrinker_fail:
>  	destroy_workqueue(shrink_wq);
>  shrink_wq_fail:
> -	cpuhp_remove_multi_state(CPUHP_MM_ZSWP_POOL_PREPARE);
> +	cpuhp_remove_state_multi(CPUHP_MM_ZSWP_POOL_PREPARE);
>  hp_fail:
>  	kmem_cache_destroy(zswap_entry_cache);
>  cache_fail:
> 
> ---
> base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
> change-id: 20261127-fix-rename_cpuhp_remove_multi_state-b79dac11744e
> 
> Regards,
> Srivatsa
> 
> 

      parent reply	other threads:[~2026-11-27  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  7:37 [PATCH] cpu/hotplug: Rename cpuhp_remove_multi_state to be symmetric with setup Srivatsa S. Bhat (Microsoft)
2026-11-27  7:44 ` Srivatsa S. Bhat
2026-11-27  8:09 ` Richard Cheng [this message]

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=awk6TGp9riwDD55i@MWDK4CY14F \
    --to=icheng@nvidia.com \
    --cc=Frank.li@nxp.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=alison.schofield@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=axboe@kernel.dk \
    --cc=chengming.zhou@linux.dev \
    --cc=chleroy@kernel.org \
    --cc=corbet@lwn.net \
    --cc=coresight@lists.linaro.org \
    --cc=cw00.choi@samsung.com \
    --cc=daniel.m.jordan@oracle.com \
    --cc=dave.jiang@intel.com \
    --cc=davem@davemloft.net \
    --cc=djbw@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=festevam@gmail.com \
    --cc=gakula@marvell.com \
    --cc=gthiagarajan@marvell.com \
    --cc=hannes@cmpxchg.org \
    --cc=haren@linux.ibm.com \
    --cc=heiko@sntech.de \
    --cc=imx@lists.linux.dev \
    --cc=iommu@lists.linux.dev \
    --cc=iweiny@kernel.org \
    --cc=james.clark@linaro.org \
    --cc=jasowangio@gmail.com \
    --cc=jic23@kernel.org \
    --cc=joro@8bytes.org \
    --cc=justin.tee@broadcom.com \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=liusizhe5@huawei.com \
    --cc=maddy@linux.ibm.com \
    --cc=magiclinan@didiglobal.com \
    --cc=marcin.s.wojtas@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mdf@kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=mike.leach@arm.com \
    --cc=minchan@kernel.org \
    --cc=mkp@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=mst@redhat.com \
    --cc=myungjoo.ham@samsung.com \
    --cc=netdev@vger.kernel.org \
    --cc=nnac123@linux.ibm.com \
    --cc=nphamcs@gmail.com \
    --cc=npiggin@gmail.com \
    --cc=nvdimm@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=paul.ely@broadcom.com \
    --cc=peterz@infradead.org \
    --cc=ptsm@linux.microsoft.com \
    --cc=rdunlap@infradead.org \
    --cc=renyu.zj@linux.alibaba.com \
    --cc=ricklind@linux.ibm.com \
    --cc=ritesh.list@gmail.com \
    --cc=robin.murphy@arm.com \
    --cc=rostedt@goodmis.org \
    --cc=s.hauer@pengutronix.de \
    --cc=senozhatsky@chromium.org \
    --cc=shaojijie@huawei.com \
    --cc=skhan@linuxfoundation.org \
    --cc=song@kernel.org \
    --cc=srivatsa@csail.mit.edu \
    --cc=ssengar@linux.microsoft.com \
    --cc=sshegde@linux.ibm.com \
    --cc=steffen.klassert@secunet.com \
    --cc=suzuki.poulose@arm.com \
    --cc=tglx@kernel.org \
    --cc=trix@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=vishal.l.verma@intel.com \
    --cc=wangyushan12@huawei.com \
    --cc=will@kernel.org \
    --cc=xiao@kernel.org \
    --cc=xu.yang_2@nxp.com \
    --cc=xuanzhuo@linux.alibaba.com \
    --cc=xueshuai@linux.alibaba.com \
    --cc=yilun.xu@intel.com \
    --cc=yosry@kernel.org \
    --cc=yukuai@fygo.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox