Date: Sat, 6 Nov 2010 09:23:49 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys smp.h Message-ID: <201011060924.oA69O9g1018052@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
lstewart 2010-11-06 09:23:49 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/sys smp.h Log: SVN rev 214858 on 2010-11-06 09:23:49Z 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.90.2.4 +38 -0 src/sys/sys/smp.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011060924.oA69O9g1018052>