diff options
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h index aea19d45f..9ff84b3dc 100644 --- a/lib/util.h +++ b/lib/util.h @@ -66,7 +66,13 @@ struct Bad_arg_to_ARRAY_SIZE { /* This system's cache line size, in bytes. * Being wrong hurts performance but not correctness. */ +#if defined(__ppc64__) || defined(__powerpc64__) || \ + defined(__PPC64__) || defined(_ARCH_PPC64) +/* http://lists.llvm.org/pipermail/llvm-dev/2017-March/110982.html */ +#define CACHE_LINE_SIZE 128 +#else #define CACHE_LINE_SIZE 64 +#endif BUILD_ASSERT_DECL(IS_POW2(CACHE_LINE_SIZE)); /* Cacheline marking is typically done using zero-sized array. |