Date: Sat, 6 Nov 2010 15:10:31 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys smp.h Message-ID: <201011061510.oA6FAlvP060756@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011061510.oA6FAlvP060756>