linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] bitmap: introduce find_random_bit() and use in clocksource
@ 2025-06-04 21:21 Yury Norov
  2025-06-04 21:21 ` [PATCH 1/3] bitmap: generalize node_random() Yury Norov
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Yury Norov @ 2025-06-04 21:21 UTC (permalink / raw)
  To: linux-kernel, Yury Norov, Rasmus Villemoes, John Stultz,
	Thomas Gleixner, Stephen Boyd, Andrew Morton

From: Yury Norov [NVIDIA] <yury.norov@gmail.com>

nodemasks implement node_random(), which may also be useful for other
subsystems. Generalize the function, and propagate to cpumask API.

Yury Norov (3):
  bitmap: generalize node_random()
  cpumask: introduce cpumask_random()
  clocksource: improve randomness in clocksource_verify_choose_cpus()

 include/linux/cpumask.h   | 12 ++++++++++++
 include/linux/find.h      |  2 ++
 include/linux/nodemask.h  | 16 +---------------
 kernel/time/clocksource.c |  5 +----
 lib/find_bit.c            | 17 ++++++++++++++++-
 5 files changed, 32 insertions(+), 20 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v2 0/3] bitmap: introduce find_random_bit() and use in clocksource
@ 2025-06-08 19:45 Yury Norov
  2025-06-08 19:45 ` [PATCH 1/3] bitmap: generalize node_random() Yury Norov
  0 siblings, 1 reply; 11+ messages in thread
From: Yury Norov @ 2025-06-08 19:45 UTC (permalink / raw)
  To: linux-kernel, Yury Norov, Rasmus Villemoes, John Stultz,
	Thomas Gleixner, Stephen Boyd, Andrew Morton

From: Yury Norov [NVIDIA] <yury.norov@gmail.com>

From: Yury Norov [NVIDIA] <yury.norov@gmail.com>

nodemasks implement node_random(), which may also be useful for other
subsystems. Generalize the function, and propagate to cpumask API.

v1: https://lore.kernel.org/all/20250604212125.25656-1-yury.norov@gmail.com/
v2: 
 - fix typos and patch #3 name format (John);
 - add comment for find_random_bit() (Andew);
 - explain single-bit optimization (Andrew);
 - don't include random.h in linux/nodemasks.h (me);

Yury Norov [NVIDIA] (3):
  bitmap: generalize node_random()
  cpumask: introduce cpumask_random()
  clocksource: Improve randomness in clocksource_verify_choose_cpus()

 include/linux/cpumask.h   | 12 ++++++++++++
 include/linux/find.h      |  2 ++
 include/linux/nodemask.h  | 17 +----------------
 kernel/time/clocksource.c |  5 +----
 lib/find_bit.c            | 24 ++++++++++++++++++++++++
 5 files changed, 40 insertions(+), 20 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-06-09 14:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04 21:21 [PATCH 0/3] bitmap: introduce find_random_bit() and use in clocksource Yury Norov
2025-06-04 21:21 ` [PATCH 1/3] bitmap: generalize node_random() Yury Norov
2025-06-04 21:34   ` Andrew Morton
2025-06-04 21:46     ` Yury Norov
2025-06-04 22:37       ` Andrew Morton
2025-06-04 21:21 ` [PATCH 2/3] cpumask: introduce cpumask_random() Yury Norov
2025-06-04 21:21 ` [PATCH 3/3] clocksource: improve randomness in clocksource_verify_choose_cpus() Yury Norov
2025-06-05 18:17   ` John Stultz
  -- strict thread matches above, loose matches on Subject: below --
2025-06-08 19:45 [PATCH v2 0/3] bitmap: introduce find_random_bit() and use in clocksource Yury Norov
2025-06-08 19:45 ` [PATCH 1/3] bitmap: generalize node_random() Yury Norov
2025-06-08 21:44   ` kernel test robot
2025-06-09 14:28     ` Yury Norov

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).