diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2021-04-11 10:49:52 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-05-10 16:22:54 -0700 |
commit | 2f20de99a63b0de9bcceedafc3281e65fbf7d4fd (patch) | |
tree | a4ac2251fa1bfc3a6763aa76e8d580875a895421 /kernel | |
parent | 4d80b8e196fad9852050f3c8624eea09a6bbeada (diff) | |
download | linux-stable-2f20de99a63b0de9bcceedafc3281e65fbf7d4fd.tar.gz linux-stable-2f20de99a63b0de9bcceedafc3281e65fbf7d4fd.tar.bz2 linux-stable-2f20de99a63b0de9bcceedafc3281e65fbf7d4fd.zip |
rcu: Make rcu_gp_cleanup() be noinline for tracing
Although there are trace events for RCU grace periods, these are only
enabled in CONFIG_RCU_TRACE=y kernels. This commit therefore marks
rcu_gp_cleanup() noinline in order to provide a function that can be
traced that is invoked near the end of each grace period.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 00a3ebca70b8..6eb64e44bdcd 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2026,7 +2026,7 @@ static void rcu_gp_fqs_loop(void) /* * Clean up after the old grace period. */ -static void rcu_gp_cleanup(void) +static noinline void rcu_gp_cleanup(void) { int cpu; bool needgp = false; |