From: Mathieu Desnoyers Date: Fri, 12 Oct 2012 11:29:34 +0000 (-0400) Subject: Test cleanup: replace "l" parameter by "loops" X-Git-Tag: v0.8.0~194 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ab0aacbe1a25d50d069f0b24aa492e84ea296f57;p=userspace-rcu.git Test cleanup: replace "l" parameter by "loops" Reported-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_cycles_per_loop.c b/tests/test_cycles_per_loop.c index 73980fa..6ff100b 100644 --- a/tests/test_cycles_per_loop.c +++ b/tests/test_cycles_per_loop.c @@ -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(); } diff --git a/tests/test_looplen.c b/tests/test_looplen.c index 3a750cc..e1bd2ea 100644 --- a/tests/test_looplen.c +++ b/tests/test_looplen.c @@ -61,9 +61,9 @@ static inline pid_t gettid(void) #endif #include -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(); } 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(); } 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(); } diff --git a/tests/test_rwlock.c b/tests/test_rwlock.c index ccbc9d1..1f267e6 100644 --- a/tests/test_rwlock.c +++ b/tests/test_rwlock.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(); } diff --git a/tests/test_urcu.c b/tests/test_urcu.c index 1b1b94b..e79e272 100644 --- a/tests/test_urcu.c +++ b/tests/test_urcu.c @@ -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(); } diff --git a/tests/test_urcu_assign.c b/tests/test_urcu_assign.c index 31e22e5..9d46caf 100644 --- a/tests/test_urcu_assign.c +++ b/tests/test_urcu_assign.c @@ -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(); } diff --git a/tests/test_urcu_bp.c b/tests/test_urcu_bp.c index 41caeb0..85ccb78 100644 --- a/tests/test_urcu_bp.c +++ b/tests/test_urcu_bp.c @@ -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(); } diff --git a/tests/test_urcu_defer.c b/tests/test_urcu_defer.c index cd9780b..a711959 100644 --- a/tests/test_urcu_defer.c +++ b/tests/test_urcu_defer.c @@ -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(); } diff --git a/tests/test_urcu_gc.c b/tests/test_urcu_gc.c index 3a42506..c20f6fc 100644 --- a/tests/test_urcu_gc.c +++ b/tests/test_urcu_gc.c @@ -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(); } diff --git a/tests/test_urcu_hash.h b/tests/test_urcu_hash.h index fe13c36..4af34f7 100644 --- a/tests/test_urcu_hash.h +++ b/tests/test_urcu_hash.h @@ -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(); } diff --git a/tests/test_urcu_lfq.c b/tests/test_urcu_lfq.c index 66ddd41..39e0351 100644 --- a/tests/test_urcu_lfq.c +++ b/tests/test_urcu_lfq.c @@ -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(); } diff --git a/tests/test_urcu_lfs.c b/tests/test_urcu_lfs.c index 88bf65d..5886ce8 100644 --- a/tests/test_urcu_lfs.c +++ b/tests/test_urcu_lfs.c @@ -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(); } diff --git a/tests/test_urcu_qsbr.c b/tests/test_urcu_qsbr.c index 421fb07..039031a 100644 --- a/tests/test_urcu_qsbr.c +++ b/tests/test_urcu_qsbr.c @@ -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(); } diff --git a/tests/test_urcu_qsbr_gc.c b/tests/test_urcu_qsbr_gc.c index 561a475..aa0e2a7 100644 --- a/tests/test_urcu_qsbr_gc.c +++ b/tests/test_urcu_qsbr_gc.c @@ -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(); } diff --git a/tests/test_urcu_wfcq.c b/tests/test_urcu_wfcq.c index 3141268..6c2e4e8 100644 --- a/tests/test_urcu_wfcq.c +++ b/tests/test_urcu_wfcq.c @@ -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(); } diff --git a/tests/test_urcu_wfq.c b/tests/test_urcu_wfq.c index 75a9275..0116d5f 100644 --- a/tests/test_urcu_wfq.c +++ b/tests/test_urcu_wfq.c @@ -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(); } diff --git a/tests/test_urcu_wfs.c b/tests/test_urcu_wfs.c index be09944..66710e2 100644 --- a/tests/test_urcu_wfs.c +++ b/tests/test_urcu_wfs.c @@ -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(); }