PERFORCE change 98513 for review
Kip Macy
kmacy at FreeBSD.org
Sun Jun 4 23:16:33 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=98513
Change 98513 by kmacy at kmacy_storage:sun4v_work_test on 2006/06/04 23:14:17
don't keep spinning in pmap_ipi if we have fewer than 32 cpus
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#61 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#61 (text+ko) ====
@@ -1197,15 +1197,16 @@
while (ackmask != curactive) {
DELAY(1);
i++;
- if (i > 100000000)
+ if (i > 1000000)
panic(" ackmask=0x%x active=0x%x\n", ackmask, curactive);
}
active_total |= curactive;
- if ((active = (pmap->pm_tlbactive & ~(active_total|cpumask))) != 0)
+ if ((active = ((pmap->pm_tlbactive & all_cpus) & ~(active_total|cpumask))) != 0) {
+ printf("pmap_ipi: retrying");
goto retry;
-
+ }
done:
return (active_total);
}
More information about the p4-projects
mailing list