Skip to contentSkip to conversation

Fix TINY_RCU rcu_is_cpu_rrupt_from_idle check

PATCH New Paul E. McKenney 1 participant 1 message Nov 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix TINY_RCU rcu_is_cpu_rrupt_from_idle check

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.

 b/kernel/rcutiny.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcutiny.c +1 -1
index e4c6a59..e7dce58 100644
@@ -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;
 }
 
 /*