]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/lib/librte_eal/common/include/arch/ppc_64/rte_pause.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / 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