[PATCH v3 31/31] coresight: Manage activated path during CPU hotplug
Leo Yan
leo.yan at arm.com
Mon Sep 15 03:33:54 PDT 2025
This commit handles activated path during the CPU hotplug process.
When a CPU is hotplug off or hotplug in, and if an activated path is
associated with it, the CPU PM notifier disables and enables the path,
including the sink and helpers.
When disabling a path, the sink's disable() callback updates its buffer
in SysFS mode.
Signed-off-by: Leo Yan <leo.yan at arm.com>
---
drivers/hwtracing/coresight/coresight-core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
index e39d1f835d77c302d475f93e125dd4f19d313864..bbad58335129968f7d0f5f22084a93c3cb114ae7 100644
--- a/drivers/hwtracing/coresight/coresight-core.c
+++ b/drivers/hwtracing/coresight/coresight-core.c
@@ -1720,6 +1720,7 @@ static int coresight_starting_cpu(unsigned int cpu)
if (path->saved_mode != CS_MODE_SYSFS)
return 0;
+ _coresight_enable_path(path, path->saved_mode, NULL, false);
source_ops(source)->enable(source, NULL, path->saved_mode, path);
return 0;
}
@@ -1746,7 +1747,8 @@ static int coresight_dying_cpu(unsigned int cpu)
if (WARN_ON(path->saved_mode != CS_MODE_SYSFS))
return 0;
- source_ops(source)->disable(source, NULL);
+ coresight_disable_source(source, NULL);
+ coresight_disable_path_from(path, NULL, false);
return 0;
}
--
2.34.1
More information about the linux-arm-kernel
mailing list