]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Remove _rcu_barrier() dependency on __stop_machine()
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 3 Aug 2012 00:43:50 +0000 (17:43 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 3 Aug 2012 15:44:27 +0000 (08:44 -0700)
commit55b35adfd0d8f23abe81d56cc9ac97e8c9bacb0c
treee0be0c9a547885db7636ef76fa8013dd3bb197a9
parentc11f73e13c65ffda9bd211195706d6f11f7ebfce
rcu: Remove _rcu_barrier() dependency on __stop_machine()

Currently, _rcu_barrier() relies on preempt_disable() to prevent
any CPU from going offline, which in turn depends on CPU hotplug's
use of __stop_machine().

This patch therefore makes _rcu_barrier() use get_online_cpus() to
block CPU-hotplug operations.  This has the added benefit of removing
the need for _rcu_barrier() to adopt callbacks:  Because CPU-hotplug
operations are excluded, there can be no callbacks to adopt.  This
commit simplifies the code accordingly.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c
kernel/rcutree.h
kernel/rcutree_trace.c