public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@nvidia.com>
To: "Yury Norov (NVIDIA)" <yury.norov@gmail.com>
Cc: "Ingo Molnar" <mingo@redhat.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Borislav Petkov" <bp@alien8.de>,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Rasmus Villemoes" <linux@rasmusvillemoes.dk>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Peter Zijlstra (Intel)" <peterz@infradead.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Tony Luck" <tony.luck@intel.com>,
	"Xin Li (Intel)" <xin@zytor.com>,
	"Chang S. Bae" <chang.seok.bae@intel.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/2] x86/topology: add bitmap_weight_from() and use it in topo_unit_count()
Date: Sun, 22 Feb 2026 12:49:51 -0500	[thread overview]
Message-ID: <aZtBv_V0P9n2YXHB@yury> (raw)
In-Reply-To: <20251222191140.380498-1-yury.norov@gmail.com>

Ping?

On Mon, Dec 22, 2025 at 02:11:36PM -0500, Yury Norov (NVIDIA) wrote:
> Currently the function open-codes the missing bitmap_weight_from() with
> a for-loop, which is known to be less effective. Add the helper and
> switch topo_unit_count() to using it.
> 
> v1: https://lore.kernel.org/all/20251214235437.244125-1-yury.norov@gmail.com/
> v2:
>  - rename 'nbits' to 'end' (Ingo);
>  - leverage bitmap_weight() in inline implementation;
>  - drop outline implementation;
>  - don't handle 'start >= end' case explititly, leave it to user.
> 
> Yury Norov (NVIDIA) (2):
>   bitmap: add bitmap_weight_from()
>   x86/topology: use bitmap_weight_from()
> 
>  arch/x86/kernel/cpu/topology.c |  8 ++------
>  include/linux/bitmap.h         | 30 ++++++++++++++++++++++++++++++
>  lib/test_bitmap.c              | 26 ++++++++++++++++++++++++++
>  3 files changed, 58 insertions(+), 6 deletions(-)
> 
> -- 
> 2.43.0

  parent reply	other threads:[~2026-02-22 17:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-22 19:11 [PATCH v2 0/2] x86/topology: add bitmap_weight_from() and use it in topo_unit_count() Yury Norov (NVIDIA)
2025-12-22 19:11 ` [PATCH v2 1/2] bitmap: add bitmap_weight_from() Yury Norov (NVIDIA)
2025-12-22 19:11 ` [PATCH v2 2/2] x86/topology: use bitmap_weight_from() Yury Norov (NVIDIA)
2026-02-22 17:49 ` Yury Norov [this message]
2026-03-13 22:42   ` [PATCH v2 0/2] x86/topology: add bitmap_weight_from() and use it in topo_unit_count() Yury Norov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aZtBv_V0P9n2YXHB@yury \
    --to=ynorov@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=chang.seok.bae@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    --cc=xin@zytor.com \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox