2021-02-16 12:11:48

by Peter Zijlstra

[permalink] [raw]
Subject: Re: [PATCH v5 1/8] smp: Run functions concurrently in smp_call_function_many_cond()

On Tue, Feb 09, 2021 at 02:16:46PM -0800, Nadav Amit wrote:
> void smp_call_function_many(const struct cpumask *mask,
> smp_call_func_t func, void *info, bool wait)
> {
> + smp_call_function_many_cond(mask, func, info, wait ? SCF_WAIT : 0, NULL);

wait*SCF_WAIT

is shorter and sometimes generates better code

> }
> EXPORT_SYMBOL(smp_call_function_many);