Skip to content

Commit

Permalink
rcu, rcutorture: make quiescent rcutorture less power-hungry
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmck authored and Ingo Molnar committed Jun 24, 2008
1 parent 1e74f9c commit e3d7be2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ static void
rcu_stutter_wait(void)
{
while (stutter_pause_test || !rcutorture_runnable)
schedule_timeout_interruptible(1);
if (rcutorture_runnable)
schedule_timeout_interruptible(1);
else
schedule_timeout_interruptible(HZ);
}

/*
Expand Down

0 comments on commit e3d7be2

Please sign in to comment.