summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/rmb-arm.patch
blob: c53ac6427c724c462d15235c3812c51937dcb62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Upstream-Status: Pending

Index: git/util.h
===================================================================
--- git.orig/util.h	2010-12-07 22:41:57.156243001 -0600
+++ git/util.h	2010-12-07 22:43:47.616243002 -0600
@@ -37,4 +37,13 @@
 #define cpu_relax()     asm volatile("" ::: "memory");
 #endif
 
+#ifdef __arm__
+/*
+ * Use the __kuser_memory_barrier helper in the CPU helper page. See
+ * arch/arm/kernel/entry-armv.S in the kernel source for details.
+ */
+#define rmb()		((void(*)(void))0xffff0fa0)()
+#define cpu_relax()	asm volatile("":::"memory")
+#endif
+
 #endif