]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Move gp_state_names[] and gp_state_getname() to tree_stall.h
authorLai Jiangshan <jiangshanlai@gmail.com>
Tue, 15 Oct 2019 10:28:47 +0000 (10:28 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:33:45 +0000 (10:33 -0800)
commit2c43d79f568a567d6e7b30c60e67901cbfead13f
tree5e7e5ffc1582e7ed83663c20c3f999b44323d4e8
parent35d0e324227bd1bb62d657c43ba88df4e7380918
rcu: Move gp_state_names[] and gp_state_getname() to tree_stall.h

Only tree_stall.h needs to get name from GP state, so this commit
moves the gp_state_names[] array and the gp_state_getname()
from kernel/rcu/tree.h and kernel/rcu/tree.c, respectively, to
kernel/rcu/tree_stall.h.  While moving gp_state_names[], this commit
uses the GCC syntax to ensure that the right string is associated with
the right CPP macro.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_stall.h