summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Lu <zlu@ezchip.com>2015-07-15 15:26:47 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-15 14:18:09 +0200
commit184abcf525596861a443a6846b8468dd625e2777 (patch)
tree476d12c8d1c5375beab45074208d2fdcadc58404
parent652bfba0ae2b78afefcb4fc889ea4cc723a8c702 (diff)
downloaddpdk-184abcf525596861a443a6846b8468dd625e2777.zip
dpdk-184abcf525596861a443a6846b8468dd625e2777.tar.gz
dpdk-184abcf525596861a443a6846b8468dd625e2777.tar.xz
eal/tile: add const in prefetch functions
Commit 7c5d0cc91579 added const in prefetch functions for X86 and PPC. This patch does the same for Tile arch. Signed-off-by: Zhigang Lu <zlu@ezchip.com>
-rw-r--r--lib/librte_eal/common/include/arch/tile/rte_prefetch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_eal/common/include/arch/tile/rte_prefetch.h b/lib/librte_eal/common/include/arch/tile/rte_prefetch.h
index f02d9fa..c94075c 100644
--- a/lib/librte_eal/common/include/arch/tile/rte_prefetch.h
+++ b/lib/librte_eal/common/include/arch/tile/rte_prefetch.h
@@ -39,17 +39,17 @@ extern "C" {
#include "generic/rte_prefetch.h"
-static inline void rte_prefetch0(volatile void *p)
+static inline void rte_prefetch0(const volatile void *p)
{
__builtin_prefetch((const void *)(uintptr_t)p, 0, 3);
}
-static inline void rte_prefetch1(volatile void *p)
+static inline void rte_prefetch1(const volatile void *p)
{
__builtin_prefetch((const void *)(uintptr_t)p, 0, 2);
}
-static inline void rte_prefetch2(volatile void *p)
+static inline void rte_prefetch2(const volatile void *p)
{
__builtin_prefetch((const void *)(uintptr_t)p, 0, 1);
}