Skip to content

Commit 16d417f

Browse files
jic23willdeacon
authored andcommitted
perf/hisi-uncore: Assign parents for event_source devices
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]/ Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Yicong Yang <[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 d0412b6 commit 16d417f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/hisilicon/hisi_uncore_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ void hisi_pmu_init(struct hisi_pmu *hisi_pmu, struct module *module)
536536
struct pmu *pmu = &hisi_pmu->pmu;
537537

538538
pmu->module = module;
539+
pmu->parent = hisi_pmu->dev;
539540
pmu->task_ctx_nr = perf_invalid_context;
540541
pmu->event_init = hisi_uncore_pmu_event_init;
541542
pmu->pmu_enable = hisi_uncore_pmu_enable;

0 commit comments

Comments
 (0)