[v2,2/3] linux-gen: abi: set ODP_CACHE_LINE_SIZE to 128 on ppc64le

Message ID 1536058816-6995-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • Fix PPC64le cache line issues
Related show

Commit Message

Github ODP bot Sept. 4, 2018, 11 a.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


POWER8 has 128-byte cache lines

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 692 (lumag:ppc64le-cache)
 ** https://github.com/Linaro/odp/pull/692
 ** Patch: https://github.com/Linaro/odp/pull/692.patch
 ** Base sha: 0a5d67beda902557056d5b5146d8cbe86e5001b0
 ** Merge commit sha: f8a74b1a2c166d0c4225802cfcce30538c375d69
 **/
 platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h b/platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h
index 90bb87875..9e3338d60 100644
--- a/platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h
+++ b/platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h
@@ -5,4 +5,5 @@ 
  */
 
 #define _ODP_NEED_GENERIC_CPU_PAUSE
+#define ODP_CACHE_LINE_SIZE 128
 #include <odp/api/abi-default/cpu.h>