lockref: Relax in cmpxchg loop
[linux-2.6-microblaze.git] / lib / lockref.c
index 7819c2d..9d76f40 100644 (file)
@@ -19,6 +19,7 @@
                if (likely(old.lock_count == prev.lock_count)) {                \
                        SUCCESS;                                                \
                }                                                               \
+               cpu_relax();                                                    \
        }                                                                       \
 } while (0)