Skip to content

Commit f4144be

Browse files
jic23willdeacon
authored andcommitted
perf/arm-ccn: Assign parents for event_source device
Currently the PMU device appears directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parent to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-20-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent e7ec479 commit f4144be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/perf/arm-ccn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ static int arm_ccn_pmu_init(struct arm_ccn *ccn)
12651265
/* Perf driver registration */
12661266
ccn->dt.pmu = (struct pmu) {
12671267
.module = THIS_MODULE,
1268+
.parent = ccn->dev,
12681269
.attr_groups = arm_ccn_pmu_attr_groups,
12691270
.task_ctx_nr = perf_invalid_context,
12701271
.event_init = arm_ccn_pmu_event_init,

0 commit comments

Comments
 (0)