Commit df63fa5b authored by Paul E. McKenney's avatar Paul E. McKenney

rcu: Convert "1UL << x" to "BIT(x)"

This commit saves a few characters by converting "1UL << x" to "BIT(x)".
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent fced9c8c
...@@ -3582,7 +3582,7 @@ static void __init rcu_init_one(void) ...@@ -3582,7 +3582,7 @@ static void __init rcu_init_one(void)
rnp->parent = NULL; rnp->parent = NULL;
} else { } else {
rnp->grpnum = j % levelspread[i - 1]; rnp->grpnum = j % levelspread[i - 1];
rnp->grpmask = 1UL << rnp->grpnum; rnp->grpmask = BIT(rnp->grpnum);
rnp->parent = rcu_state.level[i - 1] + rnp->parent = rcu_state.level[i - 1] +
j / levelspread[i - 1]; j / levelspread[i - 1];
} }
......
...@@ -168,7 +168,7 @@ struct rcu_node { ...@@ -168,7 +168,7 @@ struct rcu_node {
* are indexed relative to this interval rather than the global CPU ID space. * are indexed relative to this interval rather than the global CPU ID space.
* This generates the bit for a CPU in node-local masks. * This generates the bit for a CPU in node-local masks.
*/ */
#define leaf_node_cpu_bit(rnp, cpu) (1UL << ((cpu) - (rnp)->grplo)) #define leaf_node_cpu_bit(rnp, cpu) (BIT((cpu) - (rnp)->grplo))
/* /*
* Union to allow "aggregate OR" operation on the need for a quiescent * Union to allow "aggregate OR" operation on the need for a quiescent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment