]> git.baikalelectronics.ru Git - kernel.git/commit
bitmap_parse: Support 'all' semantics
authorYury Norov <yury.norov@gmail.com>
Wed, 21 Apr 2021 03:13:25 +0000 (20:13 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 22:38:20 +0000 (15:38 -0700)
commit02e615b0036fafd3a048547b78876f3657c12860
treeb19cef760cf5a2e53c37633b6cfb365c75c6abac
parent9fb51bb203ba1c67f480638e9d0605db59810687
bitmap_parse: Support 'all' semantics

RCU code supports an 'all' group as a special case when parsing rcu_nocbs
parameter. This patch moves the 'all' support to the core bitmap_parse
code, so that all bitmap users can enjoy this extension.

Moving 'all' parsing to a bitmap_parse level also allows users to pass
patterns together with 'all' in regular group:pattern format, for example,
"rcu_nocbs=all:1/2" would offload all the even-numbered CPUs regardless
of the number of CPUs on the system.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.rst
lib/bitmap.c
lib/test_bitmap.c