All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] bitmap: introduce find_random_bit() and use in clocksource
@ 2025-06-19 18:26 Yury Norov
  2025-06-19 18:26 ` [PATCH v4 1/3] bitmap: generalize node_random() Yury Norov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Yury Norov @ 2025-06-19 18:26 UTC (permalink / raw)
  To: linux-kernel, Yury Norov [NVIDIA], Rasmus Villemoes, John Stultz,
	Thomas Gleixner, Stephen Boyd, Andrew Morton

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: https://lore.kernel.org/all/20250608194536.28130-1-yury.norov@gmail.com/
v3: https://lore.kernel.org/all/20250617200854.60753-1-yury.norov@gmail.com/
v4: return NUMA_NO_NODES instead of MAX_NUMNODES in node_random() (Andrew)

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  | 18 +++---------------
 kernel/time/clocksource.c |  5 +----
 lib/find_bit.c            | 24 ++++++++++++++++++++++++
 5 files changed, 42 insertions(+), 19 deletions(-)

-- 
2.43.0


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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 18:26 [PATCH v4 0/3] bitmap: introduce find_random_bit() and use in clocksource Yury Norov
2025-06-19 18:26 ` [PATCH v4 1/3] bitmap: generalize node_random() Yury Norov
2025-06-19 18:26 ` [PATCH v4 2/3] cpumask: introduce cpumask_random() Yury Norov
2025-06-19 18:26 ` [PATCH v4 3/3] clocksource: Improve randomness in clocksource_verify_choose_cpus() Yury Norov
2025-06-20 21:37 ` [PATCH v4 0/3] bitmap: introduce find_random_bit() and use in clocksource Thomas Gleixner
2025-06-21 14:21   ` Yury Norov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.