lkml.org 
[lkml]   [2022]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4 00/49] bitmap: optimize bitmap_weight() usage
Date
On Thu, 10 Feb 2022 14:48:44 -0800, Yury Norov wrote:
> In many cases people use bitmap_weight()-based functions to compare
> the result against a number of expression:
>
> if (cpumask_weight(mask) > 1)
> do_something();
>
> This may take considerable amount of time on many-cpus machines because
> cpumask_weight() will traverse every word of underlying cpumask
> unconditionally.
>
> [...]

Applied to will (for-next/perf), thanks!

[12/49] perf: replace bitmap_weight with bitmap_empty where appropriate
https://git.kernel.org/will/c/95ed57c73bbc

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

\
 
 \ /
  Last update: 2022-02-16 00:21    [W:0.308 / U:4.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site