Message ID | 1456215173-4456-3-git-send-email-hongbo.zhang@linaro.org |
---|---|
State | Accepted |
Commit | 71b36d3de5154161f596e07b870e14060a93691f |
Headers | show |
diff --git a/platform/linux-generic/arch/mips64/odp/cpu_arch.h b/platform/linux-generic/arch/mips64/odp/cpu_arch.h index 3bfa0dc..7b5bfd2 100644 --- a/platform/linux-generic/arch/mips64/odp/cpu_arch.h +++ b/platform/linux-generic/arch/mips64/odp/cpu_arch.h @@ -11,6 +11,18 @@ extern "C" { #endif +/** @ingroup odp_compiler_optim + * @{ + */ + +#if defined __OCTEON__ +#define ODP_CACHE_LINE_SIZE 128 +#endif + +/** + * @} + */ + static inline void odp_cpu_pause(void) { __asm__ __volatile__ ("nop"); diff --git a/platform/linux-generic/include/odp/align.h b/platform/linux-generic/include/odp/align.h index 161a302..0f11569 100644 --- a/platform/linux-generic/include/odp/align.h +++ b/platform/linux-generic/include/odp/align.h @@ -35,10 +35,6 @@ extern "C" { #define ODP_CACHE_LINE_SIZE 64 -#elif defined __OCTEON__ - -#define ODP_CACHE_LINE_SIZE 128 - #elif defined __powerpc__ #define ODP_CACHE_LINE_SIZE 64