<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/lib/bitmap.c, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-02-01T12:06:40+00:00</updated>
<entry>
<title>cpumask: add cpumask_weight_andnot()</title>
<updated>2024-02-01T12:06:40+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2024-01-29T06:21:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c1f5204efcbcced83f67f12fa8f1a7f5f244fb87'/>
<id>urn:sha1:c1f5204efcbcced83f67f12fa8f1a7f5f244fb87</id>
<content type='text'>
Similarly to cpumask_weight_and(), cpumask_weight_andnot() is a handy
helper that may help to avoid creating an intermediate mask just to
calculate number of bits that set in a 1st given mask, and clear in 2nd
one.

Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
Reviewed-by: Jacob Keller &lt;jacob.e.keller@intel.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>bitmap: move bitmap_*_region() functions to bitmap.h</title>
<updated>2023-10-16T23:14:45+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6cb42f91aa6dfd10fd847c469caebe63b35141ff'/>
<id>urn:sha1:6cb42f91aa6dfd10fd847c469caebe63b35141ff</id>
<content type='text'>
Now that bitmap_*_region() functions are implemented as thin wrappers
around others, it's worth to move them to the header, as it opens room
for compile-time optimizations.

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
CC: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: drop _reg_op() function</title>
<updated>2023-10-15T03:25:23+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1d4836527d4168d648010909637fb6cfe45d3fac'/>
<id>urn:sha1:1d4836527d4168d648010909637fb6cfe45d3fac</id>
<content type='text'>
Now that all _reg_op() users are switched to alternative functions,
_reg_op() machinery is not needed anymore.

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: replace _reg_op(REG_OP_ISFREE) with find_next_bit()</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9276819a68b52cf2577f77985041faf527cf477c'/>
<id>urn:sha1:9276819a68b52cf2577f77985041faf527cf477c</id>
<content type='text'>
_reg_op(REG_OP_ISFREE) can be trivially replaced with find_next_bit().
Doing that opens room for potential small_const_nbits() optimization.

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=add00c76ee4dafbc35b170bea144358fd62daebb'/>
<id>urn:sha1:add00c76ee4dafbc35b170bea144358fd62daebb</id>
<content type='text'>
_reg_op(REG_OP_RELEASE) duplicates bitmap_clear().

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set()</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eae5acbd7572f2874cd2f04dd540870dca256826'/>
<id>urn:sha1:eae5acbd7572f2874cd2f04dd540870dca256826</id>
<content type='text'>
_reg_op(REG_OP_ALLOC) duplicates bitmap_set().

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: fix opencoded bitmap_allocate_region()</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b085f969ed3df1916b9d9029225f2472df33cc17'/>
<id>urn:sha1:b085f969ed3df1916b9d9029225f2472df33cc17</id>
<content type='text'>
bitmap_find_region() opencodes bitmap_allocate_region().

CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: align __reg_op() wrappers with modern coding style</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-09-25T02:38:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=82bf9bdfbce9cfa73ccd86642542159119e0419f'/>
<id>urn:sha1:82bf9bdfbce9cfa73ccd86642542159119e0419f</id>
<content type='text'>
Fix comments so that scripts/kernel-doc doesn't warn, and fix for-loop
stype in bitmap_find_free_region().

CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Suggested-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>lib/bitmap: split-out string-related operations to a separate files</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Yury Norov</name>
<email>yury.norov@gmail.com</email>
</author>
<published>2023-10-07T23:35:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=aae06fc1b5a2e4b52f8504a1f12f9b8b98e80641'/>
<id>urn:sha1:aae06fc1b5a2e4b52f8504a1f12f9b8b98e80641</id>
<content type='text'>
lib/bitmap.c and corresponding include/linux/bitmap.h are intended to
hold functions related to operations on bitmaps, like bitmap_shift or
bitmap_set. Historically, some string-related operations like
bitmap_parse are also reside in lib/bitmap.c.

Now that the subsystem evolves, string-related bitmap operations became a
significant part of the file. Because they are quite different from the
other bitmap functions by nature, it's worth to split them to a separate
source/header files.

CC: Andrew Morton &lt;akpm@linux-foundation.org&gt;
CC: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
CC: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
<entry>
<title>bitmap: Remove dead code, i.e. bitmap_copy_le()</title>
<updated>2023-10-15T03:25:22+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2023-08-17T16:20:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7733aa893847f021c674d0d30b723d892109369d'/>
<id>urn:sha1:7733aa893847f021c674d0d30b723d892109369d</id>
<content type='text'>
Besides the fact it's not used anywhere it should be implemented
differently, i.e. via helpers from linux/byteorder/generic.h.
Yet the helpers themselves need to be introduced first.

Also note, the function lacks of the test cases, they must be provided.

Hence, drop the current dead code for good.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Yury Norov &lt;yury.norov@gmail.com&gt;
</content>
</entry>
</feed>
