]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
arm64: perf: use architected event for CPU cycle counter
authorWill Deacon <will.deacon@arm.com>
Mon, 5 Nov 2012 12:34:47 +0000 (12:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 8 Nov 2012 16:06:19 +0000 (16:06 +0000)
commitf46f979fdac402c1a3decf420b82397cd93236b5
treef846a1f59bc4eaf895c2517c0716925b9497b3d1
parent3fd9396af83a1e69eaf9ebb573207431d8f265b6
arm64: perf: use architected event for CPU cycle counter

We currently use a fake event encoding (0xFF) to indicate CPU cycles so
that we don't waste an event counter and can target the hardware cycle
counter instead.

The problem with this approach is that the event space defined by the
architecture permits an implementation to allocate 0xFF for some other
event.

This patch uses the architected cycle counter encoding (0x11) so that
we avoid potentially clashing with event encodings on future CPU
implementations.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/perf_event.c