Skip to content

Commit

Permalink
rcu: Fix TINY_RCU rcu_is_cpu_rrupt_from_idle check
Browse files Browse the repository at this point in the history
The rcu_is_cpu_rrupt_from_idle() needs to allow for one interrupt level
from the idle loop, but TINY_RCU checks for a call from the idle loop
itself.  This commit fixes this issue.

Reported-by: Josh Triplett <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
Paul E. McKenney authored and paulmck committed Nov 13, 2012
1 parent f0a0e6f commit 351573a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcutiny.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle);
*/
int rcu_is_cpu_rrupt_from_idle(void)
{
return rcu_dynticks_nesting <= 0;
return rcu_dynticks_nesting <= 1;
}

/*
Expand Down

0 comments on commit 351573a

Please sign in to comment.