linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] bitmap_parselist: support 'all' semantics
@ 2021-04-20  0:01 Yury Norov
  2021-04-20  0:01 ` [PATCH 1/2] bitmap_parse: " Yury Norov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Yury Norov @ 2021-04-20  0:01 UTC (permalink / raw)
  To: linux-kernel, rcu, linux-doc, Andrew Morton, Paul E. McKenney
  Cc: Yury Norov, Andy Shevchenko, Joel Fernandes, Jonathan Corbet,
	Lai Jiangshan, Mathieu Desnoyers, Palmer Dabbelt, Paul Gortmaker,
	Randy Dunlap, Rasmus Villemoes, Steven Rostedt

RCU code supports a special group 'all' which selects all bits in a bitmap.
We have recently added 'N' extension for bitmap parse, so that '0-N' would
have exactly the same meaning as 'all'. But because the 'all' is already
used by RCU, it would be reasonable to support it in core bitmap code as a
common and easy-readable alias for '0-N'.

Moving the 'all' support to core bitmap code adds another level of
flexibility for system configuration by supporting patterns. For example,
every second bit in cpumask may be selected like this:
	isolcpus=all:1/2


Yury Norov (2):
  bitmap_parse: support 'all' semantics
  rcu/tree_plugin: don't handle the case of 'all' CPU range

 Documentation/admin-guide/kernel-parameters.rst | 5 +++++
 kernel/rcu/tree_plugin.h                        | 9 +++------
 lib/bitmap.c                                    | 9 +++++++++
 lib/test_bitmap.c                               | 8 +++++++-
 4 files changed, 24 insertions(+), 7 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v2 0/2] bitmap_parselist: support 'all' semantics
@ 2021-04-21  3:13 Yury Norov
  2021-04-21  3:13 ` [PATCH 1/2] bitmap_parse: " Yury Norov
  0 siblings, 1 reply; 12+ messages in thread
From: Yury Norov @ 2021-04-21  3:13 UTC (permalink / raw)
  To: linux-kernel, rcu, linux-doc, Andrew Morton, Paul E. McKenney
  Cc: Yury Norov, Andy Shevchenko, Joel Fernandes, Jonathan Corbet,
	Lai Jiangshan, Mathieu Desnoyers, Palmer Dabbelt, Paul Gortmaker,
	Randy Dunlap, Rasmus Villemoes, Steven Rostedt

RCU code supports a special group 'all' which selects all bits in a bitmap.
We have recently added 'N' extension for bitmap parse, so that '0-N' would
have exactly the same meaning as 'all'. But because the 'all' is already
used by RCU, it would be reasonable to support it in core bitmap code as a
common and easy-readable alias for '0-N'.

Moving the 'all' support to core bitmap code adds another level of
flexibility for system configuration by supporting patterns. For example,
every second bit in cpumask may be selected like this:
	isolcpus=all:1/2

v2:
 - cleanup patch 1;
 - in patch 2 explain why dropping legacy comment.

Yury Norov (2):
  bitmap_parse: support 'all' semantics
  rcu/tree_plugin: don't handle the case of 'all' CPU range

 Documentation/admin-guide/kernel-parameters.rst | 5 +++++
 kernel/rcu/tree_plugin.h                        | 9 +++------
 lib/bitmap.c                                    | 9 +++++++++
 lib/test_bitmap.c                               | 7 +++++++
 4 files changed, 24 insertions(+), 6 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-04-21 23:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  0:01 [PATCH 0/2] bitmap_parselist: support 'all' semantics Yury Norov
2021-04-20  0:01 ` [PATCH 1/2] bitmap_parse: " Yury Norov
2021-04-20 10:17   ` Andy Shevchenko
2021-04-20 19:32     ` Yury Norov
2021-04-20  0:01 ` [PATCH 2/2] rcu/tree_plugin: don't handle the case of 'all' CPU range Yury Norov
2021-04-20 10:18   ` Andy Shevchenko
2021-04-20 19:38     ` Yury Norov
2021-04-20 10:19 ` [PATCH 0/2] bitmap_parselist: support 'all' semantics Andy Shevchenko
2021-04-21  3:13 [PATCH v2 " Yury Norov
2021-04-21  3:13 ` [PATCH 1/2] bitmap_parse: " Yury Norov
2021-04-21 15:19   ` Steven Rostedt
2021-04-21 15:57     ` Paul E. McKenney
2021-04-21 23:45     ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).