Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Fix CPU_INFO_FOREACH which had the MUL...



details:   https://anonhg.NetBSD.org/src/rev/04aa4055a958
branches:  trunk
changeset: 808771:04aa4055a958
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 02 05:05:28 2015 +0000

description:
Fix CPU_INFO_FOREACH which had the MULTIPROCESSOR/!MULTIPROCESSOR definitions
reversed.

diffstat:

 sys/arch/mips/include/cpu.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r d228981e1d7f -r 04aa4055a958 sys/arch/mips/include/cpu.h
--- a/sys/arch/mips/include/cpu.h       Tue Jun 02 03:49:10 2015 +0000
+++ b/sys/arch/mips/include/cpu.h       Tue Jun 02 05:05:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.112 2015/06/01 22:55:12 matt Exp $   */
+/*     $NetBSD: cpu.h,v 1.113 2015/06/02 05:05:28 matt Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -149,13 +149,13 @@
 };
 
 #ifdef MULTIPROCESSOR
+#define        CPU_INFO_ITERATOR               int
+#define        CPU_INFO_FOREACH(cii, ci)       \
+    cii = 0, ci = cpu_infos[0]; cii < ncpu && (ci = cpu_infos[cii]) != NULL; cii++
+#else
 #define        CPU_INFO_ITERATOR               int __unused
 #define        CPU_INFO_FOREACH(cii, ci)       \
     ci = &cpu_info_store; ci != NULL; ci = NULL
-#else
-#define        CPU_INFO_ITERATOR               int
-#define        CPU_INFO_FOREACH(cii, ci)       \
-    cii = 0; cii < MAXCPUS && (ci = cpu_infos[cii]) != NULL; cii++
 #endif
 
 #endif /* !_LOCORE */



Home | Main Index | Thread Index | Old Index