]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/generic/rte_prefetch.h
eal: introduce non-temporal prefetch
[dpdk.git] / lib / librte_eal / common / include / generic / rte_prefetch.h
index 725715ff6e341a5d4ffb39680d1f4edb4e1d67d6..07e409ece75c57657b917cb973f94f35a2d78a48 100644 (file)
@@ -68,4 +68,16 @@ static inline void rte_prefetch1(const volatile void *p);
  */
 static inline void rte_prefetch2(const volatile void *p);
 
+/**
+ * Prefetch a cache line into all cache levels (non-temporal/transient version)
+ *
+ * The non-temporal prefetch is intended as a prefetch hint that processor will
+ * use the prefetched data only once or short period, unlike the
+ * rte_prefetch0() function which imply that prefetched data to use repeatedly.
+ *
+ * @param p
+ *   Address to prefetch
+ */
+static inline void rte_prefetch_non_temporal(const volatile void *p);
+
 #endif /* _RTE_PREFETCH_H_ */