ARM: 7663/1: perf: fix ARMv7 EVTYPE_MASK to include NSH bit
authorWill Deacon <will.deacon@arm.com>
Thu, 28 Feb 2013 16:49:11 +0000 (17:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Mar 2013 22:54:17 +0000 (22:54 +0000)
commitf2fe09b055e2549de41fb107b34c60bac4a1b0cf
tree8a611c6c0f6e842a0d7cc1cff8b83f64374f0823
parent1a8e611874da714ee7ef1e92e5160b38dc54959b
ARM: 7663/1: perf: fix ARMv7 EVTYPE_MASK to include NSH bit

Masked out PMXEVTYPER.NSH means that we can't enable profiling at PL2,
regardless of the settings in the HDCR.

This patch fixes the broken mask.

Cc: <stable@vger.kernel.org>
Reported-by: Christoffer Dall <cdall@cs.columbia.edu>
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