[PATCH 0/2] bitmap: introduce bitmap_weight_from()

Yury Norov posted 2 patches 2 months, 2 weeks ago
arch/x86/kernel/cpu/topology.c |  9 ++-------
include/linux/bitmap.h         | 11 +++++++++++
lib/bitmap.c                   | 28 ++++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 7 deletions(-)
[PATCH 0/2] bitmap: introduce bitmap_weight_from()
Posted by Yury Norov 2 months, 2 weeks ago
From: Yury Norov (NVIDIA) <yury.norov@gmail.com>

Introduce bitmap_weight_from() and use it in topo_unit_count()

Yury Norov (2):
  bitmap: introduce bitmap_weight_from()
  x86: topology: simplify topo_unit_count()

 arch/x86/kernel/cpu/topology.c |  9 ++-------
 include/linux/bitmap.h         | 11 +++++++++++
 lib/bitmap.c                   | 28 ++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 7 deletions(-)

-- 
2.43.0
Re: [PATCH 0/2] bitmap: introduce bitmap_weight_from()
Posted by Dave Hansen 2 months, 2 weeks ago
On 7/19/25 18:41, Yury Norov wrote:
>  arch/x86/kernel/cpu/topology.c |  9 ++-------
>  include/linux/bitmap.h         | 11 +++++++++++
>  lib/bitmap.c                   | 28 ++++++++++++++++++++++++++++
>  3 files changed, 41 insertions(+), 7 deletions(-)

I think we need to hear more about the motivation for doing this,
including if there are other sites that might benefit from this helper.