generic-poky/meta/recipes-kernel/sysprof/files/rmb-mips.patch
Saul Wold ece80fe035 Add Upstream-Status to patches
(From OE-Core rev: 169e55d802883df763dbff4a4737e05e96358fa3)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-03 12:14:31 +00:00

23 lines
566 B
Diff

Upstream-Status: Pending
Index: git/util.h
===================================================================
--- git.orig/util.h 2010-12-08 01:22:44.486243001 -0600
+++ git/util.h 2010-12-08 01:23:27.836243001 -0600
@@ -37,4 +37,15 @@
#define cpu_relax() asm volatile("" ::: "memory");
#endif
+#ifdef __mips__
+#define rmb() asm volatile( \
+ ".set mips2\n\t" \
+ "sync\n\t" \
+ ".set mips0" \
+ : /* no output */ \
+ : /* no input */ \
+ : "memory")
+#define cpu_relax() asm volatile("" ::: "memory")
+#endif
+
#endif