Skip to content

Commit 89e34f8

Browse files
jic23willdeacon
authored andcommitted
perf/xgene: 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 hardware related struct device. Link: https://lore.kernel.org/linux-cxl/[email protected]/ Cc: Khuong Dinh <[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 867ba6d commit 89e34f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/xgene_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ static int xgene_init_perf(struct xgene_pmu_dev *pmu_dev, char *name)
11021102

11031103
/* Perf driver registration */
11041104
pmu_dev->pmu = (struct pmu) {
1105+
.parent = pmu_dev->parent->dev,
11051106
.attr_groups = pmu_dev->attr_groups,
11061107
.task_ctx_nr = perf_invalid_context,
11071108
.pmu_enable = xgene_perf_pmu_enable,

0 commit comments

Comments
 (0)