]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c8aab731d06f45bb29febdbb5b4096d017f3ea5
tree5252086b8224c588148af6a48618030aa6e4827a
parent34886b9ffb3fa860f40e71ccd4c83ae6f33ffaf2
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