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/[email protected]/ Reviewed-by: Suzuki K Poulose <[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 1b7718f commit 3a1bb75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)