[PATCH 2/3] rcutorture: Remove redundant n_read_pt initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Per-thread read count variable, n_reads_pt is redundantly initalized
inside rperftest() and uperftest() though perftestinit() do initialize
both of n_reads_pt and n_updates_pt before.  This commit removes the
redundancy.

Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx>
---
 CodeSamples/defer/rcutorture.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/CodeSamples/defer/rcutorture.h b/CodeSamples/defer/rcutorture.h
index 2feb4ad..6ea0c09 100644
--- a/CodeSamples/defer/rcutorture.h
+++ b/CodeSamples/defer/rcutorture.h
@@ -213,7 +213,6 @@ void rperftest(int nreaders, int cpustride)
 	long arg;
 
 	perftestinit();
-	init_per_thread(n_reads_pt, 0LL);
 	for (i = 0; i < nreaders; i++) {
 		arg = (long)(i * cpustride);
 		create_thread(rcu_read_perf_test, (void *)arg);
@@ -227,7 +226,6 @@ void uperftest(int nupdaters, int cpustride)
 	long arg;
 
 	perftestinit();
-	init_per_thread(n_reads_pt, 0LL);
 	for (i = 0; i < nupdaters; i++) {
 		arg = (long)(i * cpustride);
 		create_thread(rcu_update_perf_test, (void *)arg);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux