]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7117/1: perf: fix HW_CACHE_* events on Cortex-A9
authorWill Deacon <will.deacon@arm.com>
Mon, 3 Oct 2011 17:30:53 +0000 (18:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 6 Oct 2011 10:22:01 +0000 (11:22 +0100)
commit221c79e61eb932315bdb90aa0f6b73e41e26d71d
tree40b4ece216cb179c74d2cde6624c9d991eb9ede7
parent12cac755c1c8a15fd41d3052329b2eab3a1b5090
ARM: 7117/1: perf: fix HW_CACHE_* events on Cortex-A9

Using COHERENT_LINE_{MISS,HIT} for cache misses and references
respectively is completely wrong. Instead, use the L1D events which
are a better and more useful approximation despite ignoring instruction
traffic.

Reported-by: Alasdair Grant <alasdair.grant@arm.com>
Reported-by: Matt Horsnell <matt.horsnell@arm.com>
Reported-by: Michael Williams <michael.williams@arm.com>
Cc: stable@kernel.org
Cc: Jean Pihet <j-pihet@ti.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_v7.c