]> 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>
Tue, 23 Oct 2012 12:23:49 +0000 (13:23 +0100)
commite8fd634a0011b8ad577eaee72cedc463060c3375
tree87680997e177c8f80e93cbc72a2a9e2ba3fd7062
parenta3c37f0e24de38d64c218c05393d4c3023651e6b
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