aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/perf/arm_pmu.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2016-09-09 14:08:29 +0100
committerWill Deacon <will.deacon@arm.com>2016-09-09 14:51:51 +0100
commit1589680da6f7df30d8a592eebee16478f3e34a2c (patch)
treec67b63ec8a4b07b8385481a4b245949bdd205ca9 /drivers/perf/arm_pmu.c
parentarm: perf: move to common attr_group fields (diff)
downloadlinux-dev-1589680da6f7df30d8a592eebee16478f3e34a2c.tar.xz
linux-dev-1589680da6f7df30d8a592eebee16478f3e34a2c.zip
drivers/perf: arm_pmu: only use common attr_groups
Now that the 32-bit and 64-bit perf backends use the common groups directly, remove the fallback and no longer allow the groups array to be overridden. 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/arm_pmu.c')
-rw-r--r--drivers/perf/arm_pmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c
index 1a39899d1392..60c065eb638d 100644
--- a/drivers/perf/arm_pmu.c
+++ b/drivers/perf/arm_pmu.c
@@ -549,6 +549,7 @@ static void armpmu_init(struct arm_pmu *armpmu)
.stop = armpmu_stop,
.read = armpmu_read,
.filter_match = armpmu_filter_match,
+ .attr_groups = armpmu->attr_groups,
};
}
@@ -1037,8 +1038,6 @@ 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)