Skip to content
Commit 9c86d8cd authored by Andrew Jones's avatar Andrew Jones
Browse files

lib/on-cpus: Fix on_cpumask



on_cpumask should wait until the cpus in the mask, not including
the calling cpu, are idle. Checking the weight against nr_cpus
minus 1 only works when the mask is the same as the present mask.

Fixes: d012cfd5 ("lib/on-cpus: Introduce on_cpumask and on_cpumask_async")
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarAndrew Jones <andrew.jones@linux.dev>
parent 2491edac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment