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