Yury Norov 6cc18331a9 lib/find_bit: add find_next{,_and}_bit_wrap
The helper is better optimized for the worst case: in case of empty
cpumask, current code traverses 2 * size:

  next = cpumask_next_and(prev, src1p, src2p);
  if (next >= nr_cpu_ids)
  	next = cpumask_first_and(src1p, src2p);

At bitmap level we can stop earlier after checking 'size + offset' bits.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
2022-10-01 10:22:57 -07:00
..
2022-08-11 19:21:03 +02:00
2022-08-04 20:00:14 -07:00
2022-07-22 15:51:31 +10:00
2022-08-04 12:12:54 -07:00
2022-08-06 10:56:45 -07:00
2022-08-13 13:41:48 -07:00
2022-08-01 15:26:40 +02:00
2022-08-11 12:10:08 -07:00
2022-09-02 16:37:01 -07:00