diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-10-10 04:08:12 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-10-10 04:08:12 +0000 |
commit | b0961357144c1b232ec4f1e09b332df8c1f6c7d9 (patch) | |
tree | 131ad11825cb85499320aeeb821c0dabcfea9a1a /sys/arch/powerpc/include | |
parent | 13b9812764dd4a9a970f6c8d71f3131b0c6cfa85 (diff) |
Make CPU_INFO_FOREACH useable before secondary CPUs are started.
ok deraadt@, mlarkin@
Diffstat (limited to 'sys/arch/powerpc/include')
-rw-r--r-- | sys/arch/powerpc/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index 82d72dc3a2f..ecd5b9e796b 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.57 2014/10/08 10:12:41 mpi Exp $ */ +/* $OpenBSD: cpu.h,v 1.58 2014/10/10 04:08:11 mpi Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -123,7 +123,7 @@ void cpu_boot_secondary_processors(void); #define CPU_IS_PRIMARY(ci) ((ci)->ci_cpuid == 0) #define CPU_INFO_ITERATOR int #define CPU_INFO_FOREACH(cii, ci) \ - for (cii = 0, ci = &cpu_info[0]; cii < ncpus; cii++, ci++) + for (cii = 0, ci = &cpu_info[0]; cii < ncpusfound; cii++, ci++) void cpu_unidle(struct cpu_info *); |