arm64: perf: Treat EXCLUDE_EL* bit definitions as unsigned
authorWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 15:34:44 +0000 (15:34 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 13 Dec 2018 15:34:44 +0000 (15:34 +0000)
commit26a25c841d9e6ba4ceba4b8d7ce3f3227f7510ce
treeec8589936bb72ff721ddcb37cc9682fc572ce3d4
parent2a355ec25729053bb9a1a89b6c1d1cdd6c3b3fb1
arm64: perf: Treat EXCLUDE_EL* bit definitions as unsigned

Although the upper 32 bits of the PMEVTYPER<n>_EL0 registers are RES0,
we should treat the EXCLUDE_EL* bit definitions as unsigned so that we
avoid accidentally sign-extending the privilege filtering bit (bit 31)
into the upper half of the register.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/perf_event.h