Skip to content

Commit a6814a7

Browse files
YuryNorovpaulmckrcu
authored andcommitted
rcu/tree_plugin: Don't handle the case of 'all' CPU range
The 'all' semantics is now supported by the bitmap_parselist() so we can drop supporting it as a special case in RCU code. Since 'all' is properly supported in core bitmap code, also drop legacy comment in RCU for it. This patch does not make any functional changes for existing users. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent b18def1 commit a6814a7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,13 +1535,10 @@ static void rcu_cleanup_after_idle(void)
15351535
static int __init rcu_nocb_setup(char *str)
15361536
{
15371537
alloc_bootmem_cpumask_var(&rcu_nocb_mask);
1538-
if (!strcasecmp(str, "all")) /* legacy: use "0-N" instead */
1538+
if (cpulist_parse(str, rcu_nocb_mask)) {
1539+
pr_warn("rcu_nocbs= bad CPU range, all CPUs set\n");
15391540
cpumask_setall(rcu_nocb_mask);
1540-
else
1541-
if (cpulist_parse(str, rcu_nocb_mask)) {
1542-
pr_warn("rcu_nocbs= bad CPU range, all CPUs set\n");
1543-
cpumask_setall(rcu_nocb_mask);
1544-
}
1541+
}
15451542
return 1;
15461543
}
15471544
__setup("rcu_nocbs=", rcu_nocb_setup);

0 commit comments

Comments
 (0)