[PATCH 02/14] soc/xilinx, cpu/hotplug: Update name & callbacks to match their hotplug states
From: Srivatsa S. Bhat (Microsoft)
Date: Thu Dec 03 2026 - 14:18:05 EST
The event manager registers its SGI callbacks at CPUHP_AP_ONLINE_DYN,
but names the state "soc/event:starting". This is misleading because the
'starting' suffix denotes the earlier, interrupts-disabled STARTING
section, and not the ONLINE section.
Rename it to "soc/event:online", 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: c7fdb2404f66 ("drivers: soc: xilinx: add xilinx event management driver")
Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
---
drivers/soc/xilinx/xlnx_event_manager.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/soc/xilinx/xlnx_event_manager.c b/drivers/soc/xilinx/xlnx_event_manager.c
index f733dc42b3b1..41ea6774a851 100644
--- a/drivers/soc/xilinx/xlnx_event_manager.c
+++ b/drivers/soc/xilinx/xlnx_event_manager.c
@@ -550,14 +550,14 @@ static irqreturn_t xlnx_event_handler(int irq, void *dev_id)
return IRQ_HANDLED;
}
-static int xlnx_event_cpuhp_start(unsigned int cpu)
+static int xlnx_event_cpu_online(unsigned int cpu)
{
enable_percpu_irq(virq_sgi, IRQ_TYPE_NONE);
return 0;
}
-static int xlnx_event_cpuhp_down(unsigned int cpu)
+static int xlnx_event_cpu_offline(unsigned int cpu)
{
disable_percpu_irq(virq_sgi);
@@ -660,8 +660,8 @@ static int xlnx_event_manager_probe(struct platform_device *pdev)
}
/* Setup function for the CPU hot-plug cases */
- cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "soc/event:starting",
- xlnx_event_cpuhp_start, xlnx_event_cpuhp_down);
+ cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "soc/event:online",
+ xlnx_event_cpu_online, xlnx_event_cpu_offline);
ret = zynqmp_pm_register_sgi(sgi_num, 0);
if (ret) {
--
2.43.0