Messages in this thread Patch in this message | | | From | Heiko Carstens <> | Subject | [PATCH 2/3] lockref: use cpu_relax_simple() | Date | Fri, 27 Sep 2013 10:03:53 +0200 |
| |
Make use of cpu_relax_simple() so architectures can override the default cpu_relax() semantics. This is especially useful for s390, where cpu_relax() means that the we yield() the current (virtual) cpu and therefore is very expensive.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> --- lib/lockref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/lockref.c b/lib/lockref.c index 677d036..1a00c33 100644 --- a/lib/lockref.c +++ b/lib/lockref.c @@ -19,7 +19,7 @@ if (likely(old.lock_count == prev.lock_count)) { \ SUCCESS; \ } \ - cpu_relax(); \ + cpu_relax_simple(); \ } \ } while (0) -- 1.8.3.4
| |