mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drivers/perf: arm_pmu: add common attr group fields
In preparation for adding common attribute groups, add an array of attribute group pointers to arm_pmu, which will be used if the backend hasn't already set pmu::attr_groups. Subsequent patches will move backends over to using these, before adding common fields. Signed-off-by: Mark Rutland <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Will Deacon <[email protected]>
This commit is contained in:
parent
d3ea42aad5
commit
86cdd72af9
2 changed files with 12 additions and 1 deletions
|
|
@ -1037,6 +1037,9 @@ int arm_pmu_device_probe(struct platform_device *pdev,
|
|||
goto out_free;
|
||||
}
|
||||
|
||||
if (!pmu->pmu.attr_groups)
|
||||
pmu->pmu.attr_groups = pmu->attr_groups;
|
||||
|
||||
ret = cpu_pmu_init(pmu);
|
||||
if (ret)
|
||||
goto out_free;
|
||||
|
|
|
|||
Loading…
Reference in a new issue