summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2016-02-05 14:58:46 +0000
committerJeff Vander Stoep <jeffv@google.com>2016-09-22 13:38:22 -0700
commitac3060aed4ea0173b093c474fbd8981c4e1dc274 (patch)
tree5a745053ee5facc6599b7eb6f907fd58fb7137ad /tools/perf/scripts/python
parentde30ecfe314d3aca506ed45e0892a942ce523bd4 (diff)
UPSTREAM: arm64: cpufeature: Change read_cpuid() to use sysreg's mrs_s macro
Older assemblers may not have support for newer feature registers. To get round this, sysreg.h provides a 'mrs_s' macro that takes a register encoding and generates the raw instruction. Change read_cpuid() to use mrs_s in all cases so that new registers don't have to be a special case. Including sysreg.h means we need to move the include and definition of read_cpuid() after the #ifndef __ASSEMBLY__ to avoid syntax errors in vmlinux.lds. Signed-off-by: James Morse <james.morse@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Bug: 30369029 Patchset: kaslr-arm64-4.4 (cherry picked from commit 0f54b14e76f5302afe164dc911b049b5df836ff5) Signed-off-by: Jeff Vander Stoep <jeffv@google.com> Change-Id: Ic59c81a97b4585b3c0964f293ddee08f7cb594ac
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions