public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu: Remove reduplicate check of cpu_online
@ 2015-02-25  9:09 Yao Dongdong
  2015-02-25 19:00 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Yao Dongdong @ 2015-02-25  9:09 UTC (permalink / raw)
  To: paulmck, josh, rostedt, mathieu.desnoyers, laijs; +Cc: linux-kernel, lizefan

The calling function invoke_rcu_core will check it.

Signed-off-by: Yao Dongdong <yaodongdong@huawei.com>
---
 kernel/rcu/tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 48d640c..e5f9b7e 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2741,7 +2741,7 @@ static void __call_rcu_core(struct rcu_state *rsp, struct rcu_data *rdp,
 	 * If called from an extended quiescent state, invoke the RCU
 	 * core in order to force a re-evaluation of RCU's idleness.
 	 */
-	if (!rcu_is_watching() && cpu_online(smp_processor_id()))
+	if (!rcu_is_watching())
 		invoke_rcu_core();
 
 	/* If interrupts were disabled or CPU offline, don't invoke RCU core. */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-25 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25  9:09 [PATCH] rcu: Remove reduplicate check of cpu_online Yao Dongdong
2015-02-25 19:00 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox