X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_perthreadlock.c;h=32204dc16ee95b7195d8a85d824ad7623afd094a;hp=e8e616637d1b06a3783d2f75fe1d9df73d8b17fb;hb=ab0aacbe1a25d50d069f0b24aa492e84ea296f57;hpb=cd44283e7157831c93aaa2e4386b3b7e3ce73b26 diff --git a/tests/test_perthreadlock.c b/tests/test_perthreadlock.c index e8e6166..32204dc 100644 --- a/tests/test_perthreadlock.c +++ b/tests/test_perthreadlock.c @@ -90,9 +90,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(); }