Date: Fri, 11 Jun 2010 15:56:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/sys smp.h Message-ID: <201006111556.o5BFuXxj027703@repoman.freebsd.org>
index | next in thread | raw e-mail
jhb 2010-06-11 15:56:18 UTC
FreeBSD src repository
Modified files:
sys/sys smp.h
Log:
SVN rev 209050 on 2010-06-11 15:56:18Z 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.93 +38 -0 src/sys/sys/smp.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006111556.o5BFuXxj027703>
