diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-31 18:49:20 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-08-31 01:03:46 +0200 |
commit | df63fa5bc11aadf81126d4a1785080c800e2ece3 (patch) | |
tree | 91f137161ee204da0ee66e21a73a7f6eeab186fb /kernel/rcu/tree.h | |
parent | rcu: Avoid resched_cpu() when rescheduling the current CPU (diff) | |
download | linux-df63fa5bc11aadf81126d4a1785080c800e2ece3.tar.xz linux-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.h')
-rw-r--r-- | kernel/rcu/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 8f053bb1eec8..5e561f1339d4 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -168,7 +168,7 @@ struct rcu_node { * are indexed relative to this interval rather than the global CPU ID space. * 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 |