Commit 7e866460 authored by Joel Fernandes (Google)'s avatar Joel Fernandes (Google) Committed by Paul E. McKenney
Browse files

rcuperf: Remove useless while loops around wait_event



wait_event() already retries if the condition for the wake up is not
satisifed after wake up. Remove them from the rcuperf test.

Signed-off-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 9ebcfadb
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -576,11 +576,8 @@ static int compute_real(int n)
static int
rcu_perf_shutdown(void *arg)
{
	do {
	wait_event(shutdown_wq,
			   atomic_read(&n_rcu_perf_writer_finished) >=
			   nrealwriters);
	} while (atomic_read(&n_rcu_perf_writer_finished) < nrealwriters);
		   atomic_read(&n_rcu_perf_writer_finished) >= nrealwriters);
	smp_mb(); /* Wake before output. */
	rcu_perf_cleanup();
	kernel_power_off();
@@ -693,11 +690,8 @@ kfree_perf_cleanup(void)
static int
kfree_perf_shutdown(void *arg)
{
	do {
	wait_event(shutdown_wq,
			   atomic_read(&n_kfree_perf_thread_ended) >=
			   kfree_nrealthreads);
	} while (atomic_read(&n_kfree_perf_thread_ended) < kfree_nrealthreads);
		   atomic_read(&n_kfree_perf_thread_ended) >= kfree_nrealthreads);

	smp_mb(); /* Wake before output. */