]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
perf tools, Alpha: Add Alpha support to perf.h
authorMichael Cree <mcree@orcon.net.nz>
Mon, 26 Oct 2009 08:32:06 +0000 (21:32 +1300)
committerIngo Molnar <mingo@elte.hu>
Mon, 26 Oct 2009 08:45:41 +0000 (09:45 +0100)
For the perf tool the patch implements an Alpha specific section
in the perf.h header file.

Signed-off-by: Michael Cree <mcree@orcon.net.nz>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1256545926-6972-1-git-send-email-mcree@orcon.net.nz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/perf.h

index 8cc4623afd6f677e38ad33eb847b56e56352c3fd..216bdb223f63e5d6b70d7e2c815318d0248ca853 100644 (file)
 #define cpu_relax()    asm volatile("":::"memory")
 #endif
 
+#ifdef __alpha__
+#include "../../arch/alpha/include/asm/unistd.h"
+#define rmb()          asm volatile("mb" ::: "memory")
+#define cpu_relax()    asm volatile("" ::: "memory")
+#endif
+
 #include <time.h>
 #include <unistd.h>
 #include <sys/types.h>