summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/rmb-arm.patch
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2010-12-08 01:50:04 -0600
committerSaul Wold <Saul.Wold@intel.com>2010-12-10 22:01:29 -0800
commit8d702d76ff68f6f496af212a3e8d12a0d40cac2f (patch)
treea9433e2f6ad7624903e50145909e576255914185 /meta/recipes-kernel/sysprof/files/rmb-arm.patch
parent732a117c77668d6ce69103c24f76a2d6bee81d5e (diff)
downloadpoky-8d702d76ff68f6f496af212a3e8d12a0d40cac2f.tar.gz
sysprof: add system-wide performance profiler for Linux.
[sgw@linux.intel.com: alpha'ed poky-default-revision.inc and fix commit message] Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
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