Commit 3689f9f8 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'bitmap-5.17-rc1' of git://github.com/norov/linux

Pull bitmap updates from Yury Norov:

 - introduce for_each_set_bitrange()

 - use find_first_*_bit() instead of find_next_*_bit() where possible

 - unify for_each_bit() macros

* tag 'bitmap-5.17-rc1' of git://github.com/norov/linux:
  vsprintf: rework bitmap_list_string
  lib: bitmap: add performance test for bitmap_print_to_pagebuf
  bitmap: unify find_bit operations
  mm/percpu: micro-optimize pcpu_is_populated()
  Replace for_each_*_bit_from() with for_each_*_bit() where appropriate
  find: micro-optimize for_each_{set,clear}_bit()
  include/linux: move for_each_bit() macros from bitops.h to find.h
  cpumask: replace cpumask_next_* with cpumask_first_* where appropriate
  tools: sync tools/bitmap with mother linux
  all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate
  cpumask: use find_first_and_bit()
  lib: add find_first_and_bit()
  arch: remove GENERIC_FIND_FIRST_BIT entirely
  include: move find.h from asm_generic to linux
  bitops: move find_bit_*_le functions from le.h to find.h
  bitops: protect find_first_{,zero}_bit properly
parents 1c522832 15325b4f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3410,14 +3410,14 @@ M: Yury Norov <yury.norov@gmail.com>
R:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
R:	Rasmus Villemoes <linux@rasmusvillemoes.dk>
S:	Maintained
F:	include/asm-generic/bitops/find.h
F:	include/linux/bitmap.h
F:	include/linux/find.h
F:	lib/bitmap.c
F:	lib/find_bit.c
F:	lib/find_bit_benchmark.c
F:	lib/test_bitmap.c
F:	tools/include/asm-generic/bitops/find.h
F:	tools/include/linux/bitmap.h
F:	tools/include/linux/find.h
F:	tools/lib/bitmap.c
F:	tools/lib/find_bit.c
+0 −2
Original line number Diff line number Diff line
@@ -430,8 +430,6 @@ static inline unsigned int __arch_hweight8(unsigned int w)

#endif /* __KERNEL__ */

#include <asm-generic/bitops/find.h>

#ifdef __KERNEL__

/*
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ config ARC
	select COMMON_CLK
	select DMA_DIRECT_REMAP
	select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC)
	select GENERIC_FIND_FIRST_BIT
	# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
	select GENERIC_IRQ_SHOW
	select GENERIC_PCI_IOMAP
+0 −1
Original line number Diff line number Diff line
@@ -189,7 +189,6 @@ static inline __attribute__ ((const)) unsigned long __ffs(unsigned long x)
#include <asm-generic/bitops/atomic.h>
#include <asm-generic/bitops/non-atomic.h>

#include <asm-generic/bitops/find.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/ext2-atomic-setbit.h>

+0 −1
Original line number Diff line number Diff line
@@ -264,7 +264,6 @@ static inline int find_next_bit_le(const void *p, int size, int offset)

#endif

#include <asm-generic/bitops/find.h>
#include <asm-generic/bitops/le.h>

/*
Loading