Skip to content

Commit 3a1bb75

Browse files
jic23willdeacon
authored andcommitted
perf/arm_cspmu: 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/ Reviewed-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-8-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 1b7718f commit 3a1bb75

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/perf/arm_cspmu/arm_cspmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ static int arm_cspmu_register_pmu(struct arm_cspmu *cspmu)
12061206
cspmu->pmu = (struct pmu){
12071207
.task_ctx_nr = perf_invalid_context,
12081208
.module = cspmu->impl.module,
1209+
.parent = cspmu->dev,
12091210
.pmu_enable = arm_cspmu_enable,
12101211
.pmu_disable = arm_cspmu_disable,
12111212
.event_init = arm_cspmu_event_init,

0 commit comments

Comments
 (0)