mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
arm64: Performance counters support
This patch adds support for the AArch64 performance counters. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Olof Johansson <olof@lixom.net> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
This commit is contained in:
parent
5c4233697c
commit
030896885a
4 changed files with 1478 additions and 0 deletions
|
@ -88,6 +88,12 @@ void get_term_dimensions(struct winsize *ws);
|
|||
#define CPUINFO_PROC "Processor"
|
||||
#endif
|
||||
|
||||
#ifdef __aarch64__
|
||||
#include "../../arch/arm64/include/asm/unistd.h"
|
||||
#define rmb() asm volatile("dmb ld" ::: "memory")
|
||||
#define cpu_relax() asm volatile("yield" ::: "memory")
|
||||
#endif
|
||||
|
||||
#ifdef __mips__
|
||||
#include "../../arch/mips/include/asm/unistd.h"
|
||||
#define rmb() asm volatile( \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue