OSDN Git Service

arm: perf: probe number of counters on affine CPUs
authorMark Rutland <mark.rutland@arm.com>
Wed, 13 May 2015 16:12:27 +0000 (17:12 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 27 May 2015 15:12:36 +0000 (16:12 +0100)
commit0e3038d18adcecf375c39ef5b39eb3c613293280
tree76b3f4f12c068642f394e78399b83ac3905579a0
parentc904e32a69b7c77905876fc834f474f13f62c138
arm: perf: probe number of counters on affine CPUs

In heterogeneous systems, the number of counters may differ across
clusters. To find the number of counters for a cluster, we must probe
the PMU from a CPU in that cluster.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v7.c