ARM: perf: check ARMv7 counter validity on a per-pmu basis
authorSudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Fri, 20 Jul 2012 14:18:07 +0000 (15:18 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Nov 2012 11:37:25 +0000 (11:37 +0000)
commit7279adbd9bb8ef8ff669da50f0e84c65a14022b5
tree53a45f7dcb7ccf6e0b7cbb6003fba02c75622aaf
parented6f2a522398c26559f4da23a80aa6195e6284c7
ARM: perf: check ARMv7 counter validity on a per-pmu basis

Multi-cluster ARMv7 systems may have CPU PMUs with different number of
counters.

This patch updates armv7_pmnc_counter_valid so that it takes a pmu
argument and checks the counter validity against that. We also remove a
number of redundant counter checks whether the current PMU is not easily
retrievable.

Signed-off-by: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v7.c