]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 15 Oct 2012 12:58:05 +0000 (13:58 +0100)
commit794ea0a073c0c939063fcca5f3dfbf587ae606f4
treea40e602885d8b857058595a462697354015c508d
parent26938daef325aa882978b91f1d29b26db6be4a62
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