diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-31 09:49:20 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-08-30 16:03:46 -0700 |
commit | df63fa5bc11aadf81126d4a1785080c800e2ece3 (patch) | |
tree | 91f137161ee204da0ee66e21a73a7f6eeab186fb /kernel/rcu/tree.c | |
parent | fced9c8cfe6bc8a26dbbf785927aa673c83a7a35 (diff) | |
download | lwn-df63fa5bc11aadf81126d4a1785080c800e2ece3.tar.gz lwn-df63fa5bc11aadf81126d4a1785080c800e2ece3.zip |
rcu: Convert "1UL << x" to "BIT(x)"
This commit saves a few characters by converting "1UL << x" to "BIT(x)".
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-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 92346ab8077d..e778fd5546d1 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3582,7 +3582,7 @@ static void __init rcu_init_one(void) rnp->parent = NULL; } else { rnp->grpnum = j % levelspread[i - 1]; - rnp->grpmask = 1UL << rnp->grpnum; + rnp->grpmask = BIT(rnp->grpnum); rnp->parent = rcu_state.level[i - 1] + j / levelspread[i - 1]; } |