aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2024-04-12 17:10:38 +0100
committerWill Deacon <[email protected]>2024-04-19 15:59:29 +0100
commitecb79c21c18943487b4e16ae2e5fe60e8f59e08a (patch)
tree1d795bcfe522b9cb648b8862bd29bc7ae2804a3d
parent90b4a1a927ee03972b70c69efbf7642654c79902 (diff)
perf/thunderx2: Assign parents for event_source devices
Currently all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the platform device. Link: https://lore.kernel.org/linux-cxl/[email protected]/ Cc: Robert Richter <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
-rw-r--r--drivers/perf/thunderx2_pmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c
index 33e8ff3e5265..faf763d2c95c 100644
--- a/drivers/perf/thunderx2_pmu.c
+++ b/drivers/perf/thunderx2_pmu.c
@@ -724,6 +724,7 @@ static int tx2_uncore_pmu_register(
/* Perf event registration */
tx2_pmu->pmu = (struct pmu) {
.module = THIS_MODULE,
+ .parent = tx2_pmu->dev,
.attr_groups = tx2_pmu->attr_groups,
.task_ctx_nr = perf_invalid_context,
.event_init = tx2_uncore_event_init,