off-by: Yury Norov
This seems reasonable to me.
Reviewed-by: Jacob Keller
> ---
> include/linux/bitmap.h | 12
> include/linux/cpumask.h | 13 +
> lib/bitmap.c| 7 +++
> 3 files changed, 32 insertions(+)
>
> diff --git a/include/
On 12/17/2023 1:32 PM, Yury Norov wrote:
> Add irq_spread() function that makes the driver working 15% faster than
> with cpumask_local_spread()
>
> Yury Norov (3):
> cpumask: add cpumask_weight_andnot()
> cpumask: define cleanup function for cpumasks
> net: mana: add a function to spread
On 12/17/2023 1:32 PM, Yury Norov wrote:
> +static __maybe_unused int irq_setup(unsigned int *irqs, unsigned int len,
> int node)
> +{
> + const struct cpumask *next, *prev = cpu_none_mask;
> + cpumask_var_t cpus __free(free_cpumask_var);
> + int cpu, weight;
> +
> + if (!alloc_