aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/cache.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-02-21 15:45:07 +0100
committerDave Barach <openvpp@barachs.net>2018-02-21 19:37:44 +0000
commitab2c5603a107f39e680ecb2b717f2722d613ecbe (patch)
treefb2d58ea92bcb3406e724af0a567461f574ee61d /src/vppinfra/cache.h
parent37860ea49180d2c0c4d1fd476700e3a0b8d4561c (diff)
vppinfra: change default cache line size 64 bytes
This change only affects Aarch64 where previously we were using 128 bytes. Change-Id: I52a3f2f3ff8c06abe8ae3933bc0d7a2a7749dd8a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/cache.h')
-rw-r--r--src/vppinfra/cache.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vppinfra/cache.h b/src/vppinfra/cache.h
index 7464b77a41b..e5c678eb517 100644
--- a/src/vppinfra/cache.h
+++ b/src/vppinfra/cache.h
@@ -45,17 +45,9 @@
*/
#ifndef CLIB_LOG2_CACHE_LINE_BYTES
-#if defined(__x86_64__) || defined(__ARM_ARCH_7A__) || defined(__i386__)
-#define CLIB_LOG2_CACHE_LINE_BYTES 6
-#endif
-
-#ifdef __aarch64__
-#define CLIB_LOG2_CACHE_LINE_BYTES 7
-#endif
-
-/* Default cache line size of 32 bytes. */
+/* Default cache line size of 64 bytes. */
#ifndef CLIB_LOG2_CACHE_LINE_BYTES
-#define CLIB_LOG2_CACHE_LINE_BYTES 5
+#define CLIB_LOG2_CACHE_LINE_BYTES 6
#endif
#endif /* CLIB_LOG2_CACHE_LINE_BYTES defined */