]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: perf: Enable PMCR long cycle counter bit
authorJan Glauber <jglauber@cavium.com>
Thu, 18 Feb 2016 16:50:13 +0000 (17:50 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 18 Feb 2016 17:23:41 +0000 (17:23 +0000)
commit7175f0591eb9714fa71d499c59c35bcbd030931a
tree62d06287f091fde8572c5c7cbfaeea867676762c
parentd0aa2bffcf9847133fd75b9c829da4faded81977
arm64: perf: Enable PMCR long cycle counter bit

With the long cycle counter bit (LC) disabled the cycle counter is not
working on ThunderX SOC (ThunderX only implements Aarch64).
Also, according to documentation LC == 0 is deprecated.

To keep the code simple the patch does not introduce 64 bit wide counter
functions. Instead writing the cycle counter always sets the upper
32 bits so overflow interrupts are generated as before.

Original patch from Andrew Pinksi <Andrew.Pinksi@caviumnetworks.com>

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c