[PATCH 07/14] coresight, cpu/hotplug: Update name & callbacks to match their hotplug states
From: Srivatsa S. Bhat (Microsoft)
Date: Thu Dec 03 2026 - 14:19:24 EST
CPUHP_AP_ARM_CORESIGHT_ONLINE belongs to the ONLINE section, but the
CoreSight state is named "arm/coresight-core:dying". This is misleading
because the 'dying' suffix denotes the teardown-only states in the
earlier, interrupts-disabled STARTING section, and not the ONLINE
section.
Rename it to "arm/coresight-core:offline" (since it only registers a
teardown callback), 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, except for the update to the name string,
which gets reflected in sysfs output and instrumentation.
Fixes: 7105d2aa76d8 ("coresight: Move CPU hotplug callbacks to core layer")
Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
---
drivers/hwtracing/coresight/coresight-core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
index d2f9c1fb77d9..cfddf21e29d8 100644
--- a/drivers/hwtracing/coresight/coresight-core.c
+++ b/drivers/hwtracing/coresight/coresight-core.c
@@ -2014,7 +2014,7 @@ static struct notifier_block coresight_cpu_pm_nb = {
.notifier_call = coresight_cpu_pm_notify,
};
-static int coresight_dying_cpu(unsigned int cpu)
+static int coresight_cpu_offline(unsigned int cpu)
{
struct coresight_path *path;
@@ -2039,8 +2039,8 @@ static int __init coresight_pm_setup(void)
return ret;
ret = cpuhp_setup_state_nocalls(CPUHP_AP_ARM_CORESIGHT_ONLINE,
- "arm/coresight-core:dying",
- NULL, coresight_dying_cpu);
+ "arm/coresight-core:offline",
+ NULL, coresight_cpu_offline);
if (ret)
cpu_pm_unregister_notifier(&coresight_cpu_pm_nb);
--
2.43.0