]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85da744ba3c7c7fadcbbe2a91af5d4dd56913c4c
treeec8589936bb72ff721ddcb37cc9682fc572ce3d4
parent8dac19bb3bff0626c8235fabcba36858eab78fb2
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