ARM: 5903/1: arm/perfevents: add support for ARMv7
authorJean PIHET <jpihet@mvista.com>
Tue, 26 Jan 2010 17:51:05 +0000 (18:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Feb 2010 17:25:54 +0000 (17:25 +0000)
commit796d12959ad374cae8eb77faaf4243455a305433
treec466fff6dbb8e0c16485ef5873d2ec2fb60dcf08
parent1b8873a0c6ec511870c106c80b94658f857c47f2
ARM: 5903/1: arm/perfevents: add support for ARMv7

Adds the Performance Events support for ARMv7 processor, using
the PMNC unit in HW.

Supports the following:
- Cortex-A8 and Cortex-A9 processors,
- dynamic detection of the number of available counters,
   based on the PMCR value,
- runtime detection of the CPU arch (v6 or v7)
   and model (Cortex-A8 or Cortex-A9)

Tested on OMAP3 (Cortex-A8) only.

Signed-off-by: Jean Pihet <jpihet@mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/kernel/perf_event.c