]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers/perf: arm_pmu: manage interrupts per-cpu
authorMark Rutland <mark.rutland@arm.com>
Fri, 10 Mar 2017 10:46:14 +0000 (10:46 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:40:57 +0000 (13:40 -0300)
commitad092fd26b02ff5bd8193ef539cec5e673277759
tree5c6ce34135bde93c40152e8b22117813a84b2cfd
parentef5eb2c78c11a7339ef3f8033df853f32e3d542e
drivers/perf: arm_pmu: manage interrupts per-cpu

BugLink: https://bugs.launchpad.net/bugs/1689661
When requesting or freeing interrupts, we use platform_get_irq() to find
relevant irqs, backing this up with additional information in an
optional irq_affinity table.

This means that our irq request and free paths are tied to a
platform_device, and our request path must jump through a number of
hoops in order to determine the required affinity of each interrupt.

Given that the affinity must be static, we can compute the affinity once
up-front at probe time, simplifying the irq request and free paths. By
recording interrupts in a per-cpu data structure, we simplify a few
paths, and permit a subsequent rework of the request and free paths.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: rename local nr_irqs variable to avoid conflict with global]
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 7ed98e0168bd23d8ea3294e95254cc5b4000c948)
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
include/linux/perf/arm_pmu.h