X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_mutex.c;fp=tests%2Ftest_mutex.c;h=f7605343d9ad29e75f2dccf1c2134eb9768ec9e9;hp=ba184a47e241ee2fd0cedb6eca326d805bcd3fac;hb=ab0aacbe1a25d50d069f0b24aa492e84ea296f57;hpb=cd44283e7157831c93aaa2e4386b3b7e3ce73b26 diff --git a/tests/test_mutex.c b/tests/test_mutex.c index ba184a4..f760534 100644 --- a/tests/test_mutex.c +++ b/tests/test_mutex.c @@ -86,9 +86,9 @@ static unsigned long rduration; /* write-side C.S. duration, in loops */ static unsigned long wduration; -static inline void loop_sleep(unsigned long l) +static inline void loop_sleep(unsigned long loops) { - while(l-- != 0) + while (loops-- != 0) caa_cpu_relax(); }