summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-29 07:41:07 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-29 07:41:07 -0700
commit48630d72aea6bab5223eb2538c34d87c1500d7f6 (patch)
treea11f05ddd0544e622d118b45706763a537df8acb
parent3faf4c4879c9ec35d464774444b75a2e6b4224a6 (diff)
parent3043b1884e42ad9cfc7791b09d3cffc5f1ac13aa (diff)
am 3043b188: Merge "Fix build for x86_64"android-4.2_r1
* commit '3043b1884e42ad9cfc7791b09d3cffc5f1ac13aa': Fix build for x86_64
-rw-r--r--perf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/perf.h b/perf.h
index 712bbc730858..1a0a8de32a6a 100644
--- a/perf.h
+++ b/perf.h
@@ -18,7 +18,13 @@ void get_term_dimensions(struct winsize *ws);
#endif
#if defined(__x86_64__)
+/* ANDROID_CHANGE_BEGIN */
+#if 0
#include "../../arch/x86/include/asm/unistd.h"
+#elif !defined(__APPLE__)
+#include <asm/unistd.h>
+#endif
+/* ANDROID_CHANGE_END */
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif