ARM: perf: replace global CPU PMU pointer with per-cpu pointers
authorSudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Thu, 20 Sep 2012 16:53:42 +0000 (17:53 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:12:03 +0000 (11:12 +0100)
commit66fd721f38a9de0f020d77eb2995e6b8a3db5157
treebdac050718c546d5828557ee807c7ad0c4908ae6
parent366001345f62d151aa95499fa4ed49f7d952b253
ARM: perf: replace global CPU PMU pointer with per-cpu pointers

A single global CPU PMU pointer is not useful in a system with multiple,
heterogeneous CPU PMUs as we need to access the relevant PMU depending
on the current CPU.

This patch replaces the single global CPU PMU pointer with per-cpu
pointers and changes the OProfile accessors to refer to the PMU affine
to CPU0.

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