Skip to content

Commit 4052ce0

Browse files
jic23willdeacon
authored andcommitted
perf/arm-spe: 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/[email protected]/ Acked-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 a8889fb commit 4052ce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/arm_spe_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ static int arm_spe_pmu_perf_init(struct arm_spe_pmu *spe_pmu)
932932

933933
spe_pmu->pmu = (struct pmu) {
934934
.module = THIS_MODULE,
935+
.parent = &spe_pmu->pdev->dev,
935936
.capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE,
936937
.attr_groups = arm_spe_pmu_attr_groups,
937938
/*

0 commit comments

Comments
 (0)