diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-04-12 17:10:36 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-04-19 15:59:29 +0100 |
commit | 89e34f8bee6cdd4137966321a5b5573412079116 (patch) | |
tree | af98a75b30bfd006ba841050f5e957337430eac2 | |
parent | 867ba6d204f1c35c5d615c9b9c62f51a699220fa (diff) | |
download | lwn-89e34f8bee6cdd4137966321a5b5573412079116.tar.gz lwn-89e34f8bee6cdd4137966321a5b5573412079116.zip |
perf/xgene: 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 hardware related struct device.
Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/
Cc: Khuong Dinh <khuong@os.amperecomputing.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240412161057.14099-10-Jonathan.Cameron@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | drivers/perf/xgene_pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index 0d49343d704b..8823b4c6b556 100644 --- a/drivers/perf/xgene_pmu.c +++ b/drivers/perf/xgene_pmu.c @@ -1102,6 +1102,7 @@ static int xgene_init_perf(struct xgene_pmu_dev *pmu_dev, char *name) /* Perf driver registration */ pmu_dev->pmu = (struct pmu) { + .parent = pmu_dev->parent->dev, .attr_groups = pmu_dev->attr_groups, .task_ctx_nr = perf_invalid_context, .pmu_enable = xgene_perf_pmu_enable, |