diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 20:48:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 20:48:24 +0000 |
commit | 56105db4443c9fe5708cf92279632c9410d5ba0a (patch) | |
tree | 6a7fe29740543bd1c5e7b22c5d20722853a674c0 /sys/arch/amd64/include | |
parent | 808a8304af96b11cd244b87ac335a3a6ee7c2ced (diff) |
Turn CPU_INFO_FOREACH into a real construct, like all queue(3) iterators,
instead of the contents of a for() loop. No functional change.
From the m88k SMP tree; ok art@ deraadt@
[complete diff this time]
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index f5b9a201917..6e5a9d49cb3 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.15 2005/09/20 23:00:34 deraadt Exp $ */ +/* $OpenBSD: cpu.h,v 1.16 2005/09/25 20:48:21 miod Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -141,8 +141,8 @@ extern struct cpu_info cpu_info_primary; extern struct cpu_info *cpu_info_list; #define CPU_INFO_ITERATOR int -#define CPU_INFO_FOREACH(cii, ci) cii = 0, ci = cpu_info_list; \ - ci != NULL; ci = ci->ci_next +#define CPU_INFO_FOREACH(cii, ci) for (cii = 0, ci = cpu_info_list; \ + ci != NULL; ci = ci->ci_next) #define CPU_INFO_UNIT(ci) ((ci)->ci_dev->dv_unit) |