summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/rmb-arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/sysprof/files/rmb-arm.patch')
-rw-r--r--meta/recipes-kernel/sysprof/files/rmb-arm.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-kernel/sysprof/files/rmb-arm.patch b/meta/recipes-kernel/sysprof/files/rmb-arm.patch
new file mode 100644
index 0000000000..60e7f707a3
--- /dev/null
+++ b/meta/recipes-kernel/sysprof/files/rmb-arm.patch
@@ -0,0 +1,18 @@
1Index: git/util.h
2===================================================================
3--- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600
4+++ git/util.h 2010-12-07 22:43:47.616243002 -0600
5@@ -37,4 +37,13 @@
6 #define cpu_relax() asm volatile("" ::: "memory");
7 #endif
8
9+#ifdef __arm__
10+/*
11+ * Use the __kuser_memory_barrier helper in the CPU helper page. See
12+ * arch/arm/kernel/entry-armv.S in the kernel source for details.
13+ */
14+#define rmb() ((void(*)(void))0xffff0fa0)()
15+#define cpu_relax() asm volatile("":::"memory")
16+#endif
17+
18 #endif