ARM: 7358/1: perf: add PMU hotplug notifier
authorLorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Tue, 6 Mar 2012 16:37:45 +0000 (17:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 7 Mar 2012 09:40:50 +0000 (09:40 +0000)
commita0feb6db0fe03326d7d2c7a4615ce3289615c023
tree5252086b8224c588148af6a48618030aa6e4827a
parent3f31ae121348afd9ed39700ea2a63c17cd7eeed1
ARM: 7358/1: perf: add PMU hotplug notifier

When a CPU is taken out of reset, either cold booted or hotplugged in,
some of its PMU registers can contain UNKNOWN values.

This patch adds a hotplug notifier to ARM core perf code so that upon
CPU restart the PMU unit is reset and becomes ready to use again.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c