vppinfra: change default cache line size 64 bytes 31/10731/3
authorDamjan Marion <damarion@cisco.com>
Wed, 21 Feb 2018 14:45:07 +0000 (15:45 +0100)
committerDave Barach <openvpp@barachs.net>
Wed, 21 Feb 2018 19:37:44 +0000 (19:37 +0000)
This change only affects Aarch64 where previously we were using 128
bytes.

Change-Id: I52a3f2f3ff8c06abe8ae3933bc0d7a2a7749dd8a
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/cache.h

index 7464b77..e5c678e 100644 (file)
  */
 #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 */