rcu: Eliminate check_cpu_stall() duplicate code
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 24 Jul 2023 02:26:51 +0000 (10:26 +0800)
committerFrederic Weisbecker <frederic@kernel.org>
Mon, 11 Sep 2023 19:48:36 +0000 (21:48 +0200)
commit243d5ab34446854ceca55146fc0d837655657f8e
treed0e0aec86e136d14b12247efbaab3775b85b9e50
parentf3efe02fd56e2498ad8da4c4f444a34aa1456a46
rcu: Eliminate check_cpu_stall() duplicate code

The code and comments of self-detected and other-detected RCU CPU stall
warnings are identical except the output function.  This commit therefore
refactors so as to consolidate the duplicate code.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/tree_stall.h