rcu: Conditionally build CPU-hotplug teardown callbacks
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 8 Sep 2023 20:36:00 +0000 (22:36 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 4 Oct 2023 20:25:28 +0000 (22:25 +0200)
commit2cb1f6e9a743af58a23cf14563b5eada1e0d3fde
tree60bbf767d24c0c5d23e1d4c7bc599e173db444b6
parentc964c1f5ee96e1460606d44f80a47bdacd8fe568
rcu: Conditionally build CPU-hotplug teardown callbacks

Among the three CPU-hotplug teardown RCU callbacks, two of them early
exit if CONFIG_HOTPLUG_CPU=n, and one is left unchanged. In any case
all of them have an implementation when CONFIG_HOTPLUG_CPU=n.

Align instead with the common way to deal with CPU-hotplug teardown
callbacks and provide a proper stub when they are not supported.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/rcutree.h
kernel/rcu/tree.c