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/ZCLI9A40PJsyqAmq@kroah.com/ Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Yicong Yang <yangyicong@hisilicon.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-4-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent d0412b6 commit 16d417f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)