summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinu Cherian <lcherian@marvell.com>2020-09-16 13:17:34 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-17 18:46:04 +0200
commitbb1860efc817c18fce4112f25f51043e44346d1b (patch)
tree37de388de6615541d879f9f65310787bea52fd4f
parent2fee15c10d18a09cc9926eafeaef9750be1104b2 (diff)
downloadlwn-bb1860efc817c18fce4112f25f51043e44346d1b.tar.gz
lwn-bb1860efc817c18fce4112f25f51043e44346d1b.zip
coresight: etm: perf: Sink selection using sysfs is deprecated
When using the perf interface, sink selection using sysfs is deprecated. Signed-off-by: Linu Cherian <lcherian@marvell.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20200916191737.4001561-14-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hwtracing/coresight/coresight-etm-perf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
index 9d61a71da96f..b4e5758b6c12 100644
--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -222,8 +222,6 @@ static void *etm_setup_aux(struct perf_event *event, void **pages,
if (event->attr.config2) {
id = (u32)event->attr.config2;
sink = coresight_get_sink_by_id(id);
- } else {
- sink = coresight_get_enabled_sink(true);
}
mask = &event_data->mask;