Skip to content

Commit ecb79c2

Browse files
jic23willdeacon
authored andcommitted
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]>
1 parent 90b4a1a commit ecb79c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/thunderx2_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ static int tx2_uncore_pmu_register(
724724
/* Perf event registration */
725725
tx2_pmu->pmu = (struct pmu) {
726726
.module = THIS_MODULE,
727+
.parent = tx2_pmu->dev,
727728
.attr_groups = tx2_pmu->attr_groups,
728729
.task_ctx_nr = perf_invalid_context,
729730
.event_init = tx2_uncore_event_init,

0 commit comments

Comments
 (0)