Revised processor-specific hints for back-off
[libcds.git] / cds / compiler / gcc / ppc64 / backoff.h
index f1bf7fd26a2b28f1179633a7a64bad613ed5f834..75e45741f064b4924f68354a8bbcb7aebb79e420 100644 (file)
 namespace cds { namespace backoff {
     namespace gcc { namespace ppc64 {
 
+#       define CDS_backoff_hint_defined
+        static inline void backoff_hint()
+        {
+            // Provide a hint that performance will probably be improved
+            // if shared resources dedicated to the executing processor are released for use by other processors
+            asm volatile( "or 27,27,27   # yield" );
+        }
     }} // namespace gcc::ppc64
 
     namespace platform {