From 1bea5b8188e98611e4d6961647809f87b023e14c Mon Sep 17 00:00:00 2001 From: James Hogan Date: Thu, 31 Jan 2013 12:22:37 +0000 Subject: perf: Enable building perf tools for Meta Define rmb(), cpu_relax(), and CPUINFO_PROC for Meta so that the perf tools can be built for Meta. Signed-off-by: James Hogan Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- tools/perf/perf.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/perf/perf.h') diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da458..768507e079e2 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws); #define CPUINFO_PROC "cpu model" #endif +#ifdef __metag__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() asm volatile("" ::: "memory") +#define CPUINFO_PROC "CPU" +#endif + #include #include #include -- cgit v1.2.2