]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Remove have_rcu_nocb_mask from tree_plugin.h
authorRakib Mullick <rakib.mullick@gmail.com>
Fri, 17 Nov 2017 15:40:15 +0000 (21:40 +0600)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:17:40 +0000 (09:17 -0800)
commit84b12b752f41cd3d25d75692c2145d816e42926c
tree9a0b800cf0acc3fd59f31dbc117145a10be1b371
parentefd88b02bb9e6b8b73a20ea611e5d07ed6d4af34
rcu: Remove have_rcu_nocb_mask from tree_plugin.h

Currently have_rcu_nocb_mask is used to avoid double allocation of
rcu_nocb_mask during boot up. Due to different representation of
cpumask_var_t on different kernel config CPUMASK=y(or n) it was okay.
But now we have a helper cpumask_available(), which can be utilized
to check whether rcu_nocb_mask has been allocated or not without using
a variable.

Removing the variable also reduces vmlinux size.

Unpatched version:
text    data     bss     dec     hex filename
13050393 7852470 14543408 35446271 21cddff vmlinux

Patched version:
 text    data     bss     dec     hex filename
13050390 7852438 14543408 35446236 21cdddc vmlinux

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h