summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.h
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@linux.alibaba.com>2020-06-12 05:07:54 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 21:58:51 +0300
commit7a0c2b0940c13a06573320ab7118375b35feef8b (patch)
tree9af30eda94f882e01a6640f5f00364823b93e390 /kernel/rcu/tree.h
parenta2dae43088d51c4869e7fa91ca09bcc890e277fc (diff)
downloadlinux-7a0c2b0940c13a06573320ab7118375b35feef8b.tar.xz
rcu: grpnum just records group number
The ->grpnum field in the rcu_node structure contains the bit position in this structure's parent's bitmasks, which is not the CPU number. This commit therefore adjusts this field's comment accordingly. Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r--kernel/rcu/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 9f903f5c9fa1..c96ae351688b 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -75,7 +75,7 @@ struct rcu_node {
/* Only one bit will be set in this mask. */
int grplo; /* lowest-numbered CPU here. */
int grphi; /* highest-numbered CPU here. */
- u8 grpnum; /* CPU/group number for next level up. */
+ u8 grpnum; /* group number for next level up. */
u8 level; /* root is at level 0. */
bool wait_blkd_tasks;/* Necessary to wait for blocked tasks to */
/* exit RCU read-side critical sections */