public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Improve bitmap_empty and bitmap_full
@ 2015-11-19  6:48 Jia He
  2015-11-19  6:48 ` [PATCH v2 1/3] linux/bitmap: Move 2 mask macro from bitmap.h to bitops.h Jia He
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jia He @ 2015-11-19  6:48 UTC (permalink / raw)
  To: linux-kernel, linux-arch
  Cc: Andrew Morton, Rasmus Villemoes, Denys Vlasenko, Kyungmin Park,
	Michal Nazarewicz, Yury Norov, Tejun Heo, Martin Kepplinger,
	George Spelvin, Ingo Molnar, Arnd Bergmann, Jia He

find_fisrt_{zero_}bit are too heavy for bitmap_{full,empty}. We don't 
need to calculate and compare the position of bitmap. This set of patch
instroduces lightweight api and replaces the heavy one.

v2: Move the declarations to linux/bitops.h for compilation

Jia He (3):
  Move 2 mask macro from bitmap.h to bitops.h
  Introduce 2 bit ops api: all_is_bit_{one,zero}
  Replace find_fisrt_{zero_}bit with the new lightweight api

 include/linux/bitmap.h |  7 ++-----
 include/linux/bitops.h |  7 +++++++
 lib/find_bit.c         | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 5 deletions(-)

-- 
2.5.0


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

end of thread, other threads:[~2015-11-19  9:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19  6:48 [PATCH v2 0/3] Improve bitmap_empty and bitmap_full Jia He
2015-11-19  6:48 ` [PATCH v2 1/3] linux/bitmap: Move 2 mask macro from bitmap.h to bitops.h Jia He
2015-11-19  6:48 ` [PATCH v2 2/3] lib: Introduce 2 bit ops api: all_is_bit_{one,zero} Jia He
2015-11-19  8:40   ` xinhui
2015-11-19  8:55     ` hejianet
2015-11-19  8:49   ` yalin wang
2015-11-19  6:48 ` [PATCH v3 3/3] linux/bitmap: Replace find_fisrt_{zero_}bit with the new lightweight api Jia He
2015-11-19  9:01 ` [PATCH v2 0/3] Improve bitmap_empty and bitmap_full Rasmus Villemoes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox