diff options
author | Will Newton <will.newton@linaro.org> | 2013-08-27 10:21:13 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2013-08-27 10:21:13 +0100 |
commit | 94bba60501da90cbc6d29a01b8f0a6efe64363f9 (patch) | |
tree | 9f60912491c5fc9454e4b25eb60ce20135d70f77 | |
parent | 3fa7c37d0cbdf397cf3b4bf3b759eb875821db64 (diff) |
jemalloc: Fix build on arm.
-rw-r--r-- | reference/jemalloc/include/jemalloc/jemalloc_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/reference/jemalloc/include/jemalloc/jemalloc_defs.h b/reference/jemalloc/include/jemalloc/jemalloc_defs.h index 1d322fd..de73acc 100644 --- a/reference/jemalloc/include/jemalloc/jemalloc_defs.h +++ b/reference/jemalloc/include/jemalloc/jemalloc_defs.h @@ -46,7 +46,11 @@ * Hyper-threaded CPUs may need a special instruction inside spin loops in * order to yield to another virtual CPU. */ +#if (defined(__i386__) || defined(__x86_64__) #define CPU_SPINWAIT __asm__ volatile("pause") +#else +#define CPU_SPINWAIT +#endif /* Defined if the equivalent of FreeBSD's atomic(9) functions are available. */ /* #undef JEMALLOC_ATOMIC9 */ |