Merge branch 'next-s3c-fixes' of git://aeryn.fluff.org.uk/bjdooks/linux
[linux-block.git] / tools / perf / perf.h
index e5148e2b6134242f3b42c3dd59fafd54a7acb60f..2abeb20d0bf371d34c9d6c7a9fe7fe16b202e2c9 100644 (file)
 #define cpu_relax()    asm volatile("" ::: "memory");
 #endif
 
+#ifdef __sparc__
+#include "../../arch/sparc/include/asm/unistd.h"
+#define rmb()          asm volatile("":::"memory")
+#define cpu_relax()    asm volatile("":::"memory")
+#endif
+
 #include <time.h>
 #include <unistd.h>
 #include <sys/types.h>