Date: Sun, 22 May 2011 20:19:01 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r222193 - projects/largeSMP/sys/mips/mips Message-ID: <201105222019.p4MKJ1gd088943@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Sun May 22 20:19:01 2011 New Revision: 222193 URL: http://svn.freebsd.org/changeset/base/222193 Log: Fix a bug where the index cpu is just plain wrong, thus the kernel livelocks. Reported by: gonzo Modified: projects/largeSMP/sys/mips/mips/mp_machdep.c Modified: projects/largeSMP/sys/mips/mips/mp_machdep.c ============================================================================== --- projects/largeSMP/sys/mips/mips/mp_machdep.c Sun May 22 19:58:18 2011 (r222192) +++ projects/largeSMP/sys/mips/mips/mp_machdep.c Sun May 22 20:19:01 2011 (r222193) @@ -210,8 +210,9 @@ cpu_mp_setmaxid(void) last = 1; while ((cpu = cpusetobj_ffs(&cpumask)) != 0) { last = cpu; - mp_ncpus++; + cpu--; CPU_CLR(cpu, &cpumask); + mp_ncpus++; } if (mp_ncpus <= 0) mp_ncpus = 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105222019.p4MKJ1gd088943>