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 <[email protected]> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

