Skip to content

Commit 6148865

Browse files
jic23willdeacon
authored andcommitted
perf/qcom: 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 devices. Link: https://lore.kernel.org/linux-cxl/[email protected]/ Cc: Andy Gross <[email protected]> Cc: Bjorn Andersson <[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 556da13 commit 6148865

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/perf/qcom_l2_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ static int l2_cache_pmu_probe(struct platform_device *pdev)
902902
l2cache_pmu->pmu = (struct pmu) {
903903
/* suffix is instance id for future use with multiple sockets */
904904
.name = "l2cache_0",
905+
.parent = &pdev->dev,
905906
.task_ctx_nr = perf_invalid_context,
906907
.pmu_enable = l2_cache_pmu_enable,
907908
.pmu_disable = l2_cache_pmu_disable,

drivers/perf/qcom_l3_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)
748748
return -ENOMEM;
749749

750750
l3pmu->pmu = (struct pmu) {
751+
.parent = &pdev->dev,
751752
.task_ctx_nr = perf_invalid_context,
752753

753754
.pmu_enable = qcom_l3_cache__pmu_enable,

0 commit comments

Comments
 (0)