summaryrefslogtreecommitdiff
path: root/include/linux/coresight.h
diff options
context:
space:
mode:
authorJames Clark <james.clark@arm.com>2024-01-29 18:40:33 +0300
committerSuzuki K Poulose <suzuki.poulose@arm.com>2024-02-12 13:21:37 +0300
commita0fef3f05cf36338d471e8f35a9ced88a054d583 (patch)
treeb5cd9a0eaf7c2d88fe3670c6c6ce6ecae36e6e41 /include/linux/coresight.h
parentf68bbe4dcfa303164922bc331d2e8d38ed2d4f23 (diff)
downloadlinux-a0fef3f05cf36338d471e8f35a9ced88a054d583.tar.xz
coresight: Make language around "activated" sinks consistent
Activated has the specific meaning of a sink that's selected for use by the user via sysfs. But comments in some code that's shared by Perf use the same word, so in those cases change them to just say "selected" instead. With selected implying either via Perf or "activated" via sysfs. coresight_get_enabled_sink() doesn't actually get an enabled sink, it only gets an activated one, so change that too. And change the activated variable name to include "sysfs" so it can't be confused as a general status. Signed-off-by: James Clark <james.clark@arm.com> Link: https://lore.kernel.org/r/20240129154050.569566-3-james.clark@arm.com Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r--include/linux/coresight.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index e8b6e388218c..516ab45ff3c2 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -229,10 +229,12 @@ struct coresight_sysfs_link {
* @refcnt: keep track of what is in use.
* @orphan: true if the component has connections that haven't been linked.
* @enable: 'true' if component is currently part of an active path.
- * @activated: 'true' only if a _sink_ has been activated. A sink can be
- * activated but not yet enabled. Enabling for a _sink_
- * happens when a source has been selected and a path is enabled
- * from source to that sink.
+ * @sysfs_sink_activated: 'true' when a sink has been selected for use via sysfs
+ * by writing a 1 to the 'enable_sink' file. A sink can be
+ * activated but not yet enabled. Enabling for a _sink_ happens
+ * when a source has been selected and a path is enabled from
+ * source to that sink. A sink can also become enabled but not
+ * activated if it's used via Perf.
* @ea: Device attribute for sink representation under PMU directory.
* @def_sink: cached reference to default sink found for this device.
* @nr_links: number of sysfs links created to other components from this
@@ -252,9 +254,9 @@ struct coresight_device {
struct device dev;
atomic_t refcnt;
bool orphan;
- bool enable; /* true only if configured as part of a path */
+ bool enable;
/* sink specific fields */
- bool activated; /* true only if a sink is part of a path */
+ bool sysfs_sink_activated;
struct dev_ext_attribute *ea;
struct coresight_device *def_sink;
/* sysfs links between components */