diff options
author | Mark Rutland <mark.rutland@arm.com> | 2016-09-09 14:08:26 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-09 14:51:51 +0100 |
commit | 86cdd72af936860503f392825410d1b60a3e474e (patch) | |
tree | ac544c7b51bc28be08696c696a718cec63a0894f /drivers/perf | |
parent | d3ea42aad584493b99c109e59ced77db145a68e1 (diff) | |
download | linux-stable-86cdd72af936860503f392825410d1b60a3e474e.tar.gz linux-stable-86cdd72af936860503f392825410d1b60a3e474e.tar.bz2 linux-stable-86cdd72af936860503f392825410d1b60a3e474e.zip |
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 <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/perf')
-rw-r--r-- | drivers/perf/arm_pmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index 193a68cc2af4..1a39899d1392 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -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; |