From owner-svn-src-projects@FreeBSD.ORG Tue May 24 15:47:41 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38DEA106566C; Tue, 24 May 2011 15:47:41 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 29DC48FC0C; Tue, 24 May 2011 15:47:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4OFlftu075878; Tue, 24 May 2011 15:47:41 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4OFlf7H075875; Tue, 24 May 2011 15:47:41 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201105241547.p4OFlf7H075875@svn.freebsd.org> From: Attilio Rao Date: Tue, 24 May 2011 15:47:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222260 - in projects/largeSMP/sys/i386: i386 xen X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 15:47:41 -0000 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 {