]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drivers/perf: arm_pmu: rework per-cpu allocation
authorMark Rutland <mark.rutland@arm.com>
Fri, 10 Mar 2017 10:46:13 +0000 (10:46 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:40:56 +0000 (13:40 -0300)
commitef5eb2c78c11a7339ef3f8033df853f32e3d542e
treebe3baa541427fdbe606ef5525c4f5109c0aa35b9
parentb7a8d607d86df0f6c558c5a5b73f4b5339a1f0d2
drivers/perf: arm_pmu: rework per-cpu allocation

BugLink: https://bugs.launchpad.net/bugs/1689661
For historical reasons, we allocate per-cpu data associated with a PMU
rather late, in cpu_pmu_init, after we've parsed whatever hardware
information we were provided with.

In order to allow use to store some per-cpu data early in the probe
path, we need to allocate (and initialise) the per-cpu data earlier.
This patch reworks the way we allocate the pmu and associated per-cpu
data in order to make that possible.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: make armpmu_{alloc,free} static
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 2681f0184276d7fc934b6866a5a267f5b3369f7d)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/perf/arm_pmu.c