svn commit: r331606 - in head/sys: amd64/include i386/include x86/x86 x86/xen
Hans Petter Selasky
hps at selasky.org
Tue Mar 27 08:45:24 UTC 2018
On 03/27/18 05:37, Jeff Roberson wrote:
> do {
> - current_cpu++;
> - if (current_cpu > mp_maxid)
> - current_cpu = 0;
> - } while (!CPU_ISSET(current_cpu, &intr_cpus));
> + current_cpu[domain]++;
> + if (current_cpu[domain] > mp_maxid)
> + current_cpu[domain] = 0;
> + } while (!CPU_ISSET(current_cpu[domain], &intr_cpus) ||
> + !CPU_ISSET(current_cpu[domain], &cpuset_domain[domain]));
Can it happen that cpuset_domain[domain] is all zero? Won't this loop
hang then?
--HPS
More information about the svn-src-head
mailing list