diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-20 21:04:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-20 21:04:16 +0000 |
commit | 22fcca33853941d5508fb8a6c1a717754315a88f (patch) | |
tree | bef92f2934a7dbabc4e73dabebf54b0e6bc70cef /sys/arch/i386/include | |
parent | 1261ccf0d34c1970a345818cc86306e090b521b7 (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@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index d773fca799b..89d555048de 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.68 2005/05/27 10:41:11 kjell Exp $ */ +/* $OpenBSD: cpu.h,v 1.69 2005/09/20 21:04:15 miod Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -167,8 +167,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) |