Date: Tue, 24 May 2011 15:47:41 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r222260 - in projects/largeSMP/sys/i386: i386 xen Message-ID: <201105241547.p4OFlf7H075875@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Tue May 24 15:47:40 2011 New Revision: 222260 URL: http://svn.freebsd.org/changeset/base/222260 Log: - Fix a misusage of cpuset_t objects - Fix a typo Reported by: pluknet Modified: projects/largeSMP/sys/i386/i386/pmap.c projects/largeSMP/sys/i386/xen/pmap.c Modified: projects/largeSMP/sys/i386/i386/pmap.c ============================================================================== --- projects/largeSMP/sys/i386/i386/pmap.c Tue May 24 15:39:34 2011 (r222259) +++ projects/largeSMP/sys/i386/i386/pmap.c Tue May 24 15:47:40 2011 (r222260) @@ -1939,7 +1939,7 @@ pmap_lazyfix(pmap_t pmap) { cpuset_t mymask, mask; u_int spins; - int lbs; + int lsb; mask = pmap->pm_active; while (!CPU_EMPTY(&mask)) { @@ -1957,7 +1957,7 @@ pmap_lazyfix(pmap_t pmap) lazyptd = vtophys(pmap->pm_pdir); #endif mymask = PCPU_GET(cpumask); - if (mask == mymask) { + if (!CPU_CMP(&mask, &mymask)) { lazymask = &pmap->pm_active; pmap_lazyfix_self(mymask); } else { Modified: projects/largeSMP/sys/i386/xen/pmap.c ============================================================================== --- projects/largeSMP/sys/i386/xen/pmap.c Tue May 24 15:39:34 2011 (r222259) +++ projects/largeSMP/sys/i386/xen/pmap.c Tue May 24 15:47:40 2011 (r222260) @@ -1740,7 +1740,7 @@ pmap_lazyfix(pmap_t pmap) lazyptd = vtophys(pmap->pm_pdir); #endif mymask = PCPU_GET(cpumask); - if (mask == mymask) { + if (!CPU_CMP(&mask, &mymask)) { lazymask = &pmap->pm_active; pmap_lazyfix_self(mymask); } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105241547.p4OFlf7H075875>