Fix yet another inversion in the logic by applying the x86 version of this,

which avoids CPU_EMPTY() in the first place.
Do I get a beer or something for every inversion I find?
This commit is contained in:
Marius Strobl 2011-05-14 23:20:14 +00:00
parent f27aed53d0
commit 93c57e311e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/largeSMP/; revision=221932

View File

@ -573,8 +573,8 @@ spitfire_ipi_selected(cpuset_t cpus, u_long d0, u_long d1, u_long d2)
{
u_int cpu;
while (CPU_EMPTY(&cpus)) {
cpu = cpusetobj_ffs(&cpus) - 1;
while ((cpu = cpusetobj_ffs(&cpus)) != 0) {
cpu--;
CPU_CLR(cpu, &cpus);
spitfire_ipi_single(cpu, d0, d1, d2);
}