| From | Will Deacon <> | Subject | Re: [PATCH v4 00/49] bitmap: optimize bitmap_weight() usage | Date | Tue, 15 Feb 2022 23:18:33 +0000 |
| |
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
|