projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7ec479
)
perf/arm-ccn: Assign parents for event_source device
author
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Fri, 12 Apr 2024 16:10:46 +0000
(17:10 +0100)
committer
Will Deacon
<will@kernel.org>
Fri, 19 Apr 2024 14:59:30 +0000
(15:59 +0100)
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-20-Jonathan.Cameron@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ccn.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/perf/arm-ccn.c
b/drivers/perf/arm-ccn.c
index 641471bd5eff4010e2124e28ff8a7b4f628fed98..f4495ff6525f65ba213e5b8a754437859fd4561a 100644
(file)
--- a/
drivers/perf/arm-ccn.c
+++ b/
drivers/perf/arm-ccn.c
@@
-1265,6
+1265,7
@@
static int arm_ccn_pmu_init(struct arm_ccn *ccn)
/* Perf driver registration */
ccn->dt.pmu = (struct pmu) {
.module = THIS_MODULE,
+ .parent = ccn->dev,
.attr_groups = arm_ccn_pmu_attr_groups,
.task_ctx_nr = perf_invalid_context,
.event_init = arm_ccn_pmu_event_init,