]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/arch/ppc_64/rte_pause.h
eal/x86: include SSE4 support on Windows
[dpdk.git] / lib / librte_eal / common / include / arch / ppc_64 / rte_pause.h
index 8bd8357649347d719c68b2442f0831c0a076fc3b..16e47ce22f1a8054b18be1b00470cd35f4f42d64 100644 (file)
@@ -9,10 +9,17 @@
 extern "C" {
 #endif
 
+#include "rte_atomic.h"
+
 #include "generic/rte_pause.h"
 
 static inline void rte_pause(void)
 {
+       /* Set hardware multi-threading low priority */
+       asm volatile("or 1,1,1");
+       /* Set hardware multi-threading medium priority */
+       asm volatile("or 2,2,2");
+       rte_compiler_barrier();
 }
 
 #ifdef __cplusplus