]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Avoid having just-onlined CPU resched itself when RCU is idle
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 14 Aug 2011 22:56:54 +0000 (15:56 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 14 Aug 2011 22:56:54 +0000 (15:56 -0700)
commit2b71aa9e1134844cd155c8931849bd5faa6803b0
treeab5be48c358fbe464258ecdad39e11f6ccf34d6b
parentb90c3b98f1af643ce43ed69964b3d501b63a413c
rcu: Avoid having just-onlined CPU resched itself when RCU is idle

CPUs set rdp->qs_pending when coming online to resolve races with
grace-period start.  However, this means that if RCU is idle, the
just-onlined CPU might needlessly send itself resched IPIs.  Adjust
the online-CPU initialization to avoid this, and also to correctly
cause the CPU to respond to the current grace period if needed.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c