summaryrefslogtreecommitdiffstats
path: root/arch/metag
diff options
context:
space:
mode:
authorMark Rutland2014-05-23 19:11:14 +0200
committerWill Deacon2014-10-30 13:16:59 +0100
commit548a86cae4858433cab7e101bca2c6856ab55887 (patch)
tree91ec901f7e5bac7fa7645e809b2610cca195d0cc /arch/metag
parentarm: perf: add missing pr_info newlines (diff)
downloadkernel-qcow2-linux-548a86cae4858433cab7e101bca2c6856ab55887.tar.gz
kernel-qcow2-linux-548a86cae4858433cab7e101bca2c6856ab55887.tar.xz
kernel-qcow2-linux-548a86cae4858433cab7e101bca2c6856ab55887.zip
arm: perf: make PMU probing data-driven
The current PMU probing logic consists of a single switch statement, which means that the core arm_pmu core in perf_event_cpu.c needs to know about every CPU PMU variant supported by a driver using the arm_pmu framework. This makes it rather difficult to decouple the drivers from the (otherwise generic) probing code. The patch refactors that switch statement to a table-driven lookup, separating the logic and knowledge (in the form of the table). Later patches will split the table across the relevant PMU drivers, which can pass their tables to the generic probing function. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Will Deacon <will.deacon@arm.com> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/metag')
0 files changed, 0 insertions, 0 deletions