arm64: perf: fix ARMv8 EVTYPE_MASK to include NSH bit
authorWill Deacon <will.deacon@arm.com>
Tue, 20 Aug 2013 10:47:42 +0000 (11:47 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 14 May 2014 11:15:57 +0000 (12:15 +0100)
commita73eb27dbbbbf1b3f40a4cec380f8d9f238c26aa
treebf6f6507435541f41cc6cf0c88343c9c3e9399b8
parent0d7707cb914db6188e9041e4a4440687a3f89ddf
arm64: perf: fix ARMv8 EVTYPE_MASK to include NSH bit

commit 178cd9ce377232518ec17ff2ecab2e80fa60784c upstream.

This is a port of f2fe09b055e2 ("ARM: 7663/1: perf: fix ARMv7 EVTYPE_MASK
to include NSH bit") to arm64, which fixes the broken evtype mask to
include the NSH bit, allowing profiling at EL2.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 0fe9a0dc92a64c088e76fcd3d35b2ba36b4d7f3c)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/perf_event.c