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/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-24-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent a8889fb commit 4052ce0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)