提交 351573a8 编写于 作者: P Paul E. McKenney 提交者: Paul E. McKenney

rcu: 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.
Reported-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 f0a0e6f2
...@@ -195,7 +195,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle); ...@@ -195,7 +195,7 @@ EXPORT_SYMBOL(rcu_is_cpu_idle);
*/ */
int rcu_is_cpu_rrupt_from_idle(void) int rcu_is_cpu_rrupt_from_idle(void)
{ {
return rcu_dynticks_nesting <= 0; return rcu_dynticks_nesting <= 1;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册