]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcu: Allow short-circuiting of synchronize_rcu_tasks_rude()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 9 Oct 2024 18:00:41 +0000 (11:00 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 12 Nov 2024 20:44:24 +0000 (21:44 +0100)
commit481aa5fca02a2ee85ca76571becca31f816c2420
treee9b44ea209194470cb44f0395eca1b5de36a27e0
parent4fa7f729cecf4aee3cad8218b006b476f0ff90f4
rcu: Allow short-circuiting of synchronize_rcu_tasks_rude()

There are now architectures for which all deep-idle and entry-exit
functions are properly inlined or marked noinstr.  Such architectures do
not need synchronize_rcu_tasks_rude(), or will not once RCU Tasks has
been modified to pay attention to idle tasks.  This commit therefore
allows a CONFIG_ARCH_HAS_NOINSTR_MARKINGS Kconfig option to turn
synchronize_rcu_tasks_rude() into a no-op.

To facilitate testing, kernels built by rcutorture scripting will enable
RCU Tasks Trace even on systems that do not need it.

[ paulmck: Apply Peter Zijlstra feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/tasks.h