git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
eal: introduce non-temporal prefetch
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
arch
/
ppc_64
/
rte_prefetch.h
diff --git
a/lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h
b/lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h
index
fea3be1
..
bcc7185
100644
(file)
--- a/
lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h
+++ b/
lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h
@@
-54,6
+54,12
@@
static inline void rte_prefetch2(const volatile void *p)
asm volatile ("dcbt 0,%[p],1" : : [p] "r" (p));
}
+static inline void rte_prefetch_non_temporal(const volatile void *p)
+{
+ /* non-temporal version not available, fallback to rte_prefetch0 */
+ rte_prefetch0(p);
+}
+
#ifdef __cplusplus
}
#endif