Test cleanup: replace "l" parameter by "loops"
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Oct 2012 11:29:34 +0000 (07:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Oct 2012 11:29:34 +0000 (07:29 -0400)
Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
18 files changed:
tests/test_cycles_per_loop.c
tests/test_looplen.c
tests/test_mutex.c
tests/test_perthreadlock.c
tests/test_rwlock.c
tests/test_urcu.c
tests/test_urcu_assign.c
tests/test_urcu_bp.c
tests/test_urcu_defer.c
tests/test_urcu_gc.c
tests/test_urcu_hash.h
tests/test_urcu_lfq.c
tests/test_urcu_lfs.c
tests/test_urcu_qsbr.c
tests/test_urcu_qsbr_gc.c
tests/test_urcu_wfcq.c
tests/test_urcu_wfq.c
tests/test_urcu_wfs.c

index 73980fa2214a0a30b1beea1ef68d44b30ee01baa..6ff100bf38b34e518d937d6bc34760db74c6b63b 100644 (file)
@@ -25,9 +25,9 @@
 
 #define NR_LOOPS 1000000UL
 
-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();
 }
 
index 3a750cc1b4e2fd5870dd85dfd6f44f2d41f61d70..e1bd2ea25a037238cba132ba61d2879b1fd36f24 100644 (file)
@@ -61,9 +61,9 @@ static inline pid_t gettid(void)
 #endif
 #include <urcu.h>
 
-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();
 }
 
index ba184a47e241ee2fd0cedb6eca326d805bcd3fac..f7605343d9ad29e75f2dccf1c2134eb9768ec9e9 100644 (file)
@@ -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();
 }
 
index e8e616637d1b06a3783d2f75fe1d9df73d8b17fb..32204dc16ee95b7195d8a85d824ad7623afd094a 100644 (file)
@@ -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();
 }
 
index ccbc9d170c9e226dab54944881095f8c1599b39d..1f267e677e48c4e586680ab0c8a8f7dffc11db7f 100644 (file)
@@ -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();
 }
 
index 1b1b94b5bfcebc77c3fec5481e528858d62ed4f9..e79e2726cdb7d746b14973c4c07dc3e98f960517 100644 (file)
@@ -84,9 +84,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();
 }
 
index 31e22e511b96d5a61a45699a45225f35f3b6301a..9d46caf4e1b26e042e58970d3a9a9b02a4ad85d4 100644 (file)
@@ -84,9 +84,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();
 }
 
index 41caeb0995d1d19cfc6bab50d2179c5e2399d576..85ccb7899b3fade57b51f85e96e1d6cec783eb91 100644 (file)
@@ -84,9 +84,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();
 }
 
index cd9780b6f02f0b44d6f08e5ce5961590ebcde04a..a711959a4ea19dbc19310f17d5450d54f6a96da4 100644 (file)
@@ -85,9 +85,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();
 }
 
index 3a425068e8db00f8ab27651fe48d185c15930125..c20f6fcfe5112327086a3138d28d06455023ffdc 100644 (file)
@@ -93,9 +93,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();
 }
 
index fe13c36ad192c890fda33a21b049daaa91bee3e4..4af34f7a3499cb9fdec2d9681f33edfde35d93fa 100644 (file)
@@ -175,9 +175,9 @@ extern unsigned long nr_hash_chains;
 
 extern int count_pipe[2];
 
-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();
 }
 
index 66ddd410c6d7d80c26bd35bf95e425fbfaf611ae..39e0351abb27672f5d6677e436ebaeebc88567b3 100644 (file)
@@ -78,9 +78,9 @@ static unsigned long duration;
 /* read-side C.S. duration, in loops */
 static unsigned long wdelay;
 
-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();
 }
 
index 88bf65d09bd533bf19139a4028e68e990e43ea64..5886ce86de50c1ab2c25c61a172d895fa4a33a53 100644 (file)
@@ -78,9 +78,9 @@ static unsigned long duration;
 /* read-side C.S. duration, in loops */
 static unsigned long wdelay;
 
-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();
 }
 
index 421fb0739bd8f665d22f25bf9f04a607776ecbf2..039031a35819a5284026f8b3af6597a735f3f007 100644 (file)
@@ -84,9 +84,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();
 }
 
index 561a475d30c178c907ec5a9402060b9b8db685a2..aa0e2a74aeabdd54bb3c30e3ec276d3b9120f46d 100644 (file)
@@ -89,9 +89,9 @@ static struct reclaim_queue *pending_reclaims;
 /* 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();
 }
 
index 3141268053f3955685700def0cf0bfcbc1948b59..6c2e4e827707f80ce7af9a29a1480f7ee49c4fb3 100644 (file)
@@ -77,9 +77,9 @@ static unsigned long duration;
 /* read-side C.S. duration, in loops */
 static unsigned long wdelay;
 
-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();
 }
 
index 75a9275e74f2d9a4ae42c2fd1e9fa4ce33751546..0116d5f6fd2edcc86eec781dbf40e5b19bcd44c0 100644 (file)
@@ -77,9 +77,9 @@ static unsigned long duration;
 /* read-side C.S. duration, in loops */
 static unsigned long wdelay;
 
-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();
 }
 
index be099449a78c6845f2af1eaefc6bc18d0c8ff6df..66710e2b688123a1b0ce5d672b55e3d6f7f33b04 100644 (file)
@@ -77,9 +77,9 @@ static unsigned long duration;
 /* read-side C.S. duration, in loops */
 static unsigned long wdelay;
 
-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();
 }
 
This page took 0.038505 seconds and 4 git commands to generate.