From owner-cvs-src-old@FreeBSD.ORG Sat Nov 6 15:10:47 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76D43106566C for ; Sat, 6 Nov 2010 15:10:47 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 644908FC19 for ; Sat, 6 Nov 2010 15:10:47 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oA6FAlel060757 for ; Sat, 6 Nov 2010 15:10:47 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oA6FAlvP060756 for cvs-src-old@freebsd.org; Sat, 6 Nov 2010 15:10:47 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201011061510.oA6FAlvP060756@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Sat, 6 Nov 2010 15:10:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/sys smp.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2010 15:10:47 -0000 lstewart 2010-11-06 15:10:31 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/sys smp.h Log: SVN rev 214887 on 2010-11-06 15:10:31Z by lstewart MFC r209050 (originally committed by jhb): Add helper macros to iterate over available CPUs in the system. CPU_FOREACH(i) iterates over the CPU IDs of all available CPUs. The CPU_FIRST() and CPU_NEXT(i) macros can also be used to iterate over available CPU IDs. CPU_NEXT(i) wraps around to CPU_FIRST() rather than returning some sort of terminator. Requested by: rwatson Reviewed by: attilio Revision Changes Path 1.85.2.3 +38 -0 src/sys/sys/smp.h