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/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Khuong Dinh <khuong@os.amperecomputing.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-10-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 867ba6d commit 89e34f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)