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/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Robert Richter <rric@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-12-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 90b4a1a commit ecb79c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)