Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc make CPU_INFO_FOREACH() set the iterato...
details: https://anonhg.NetBSD.org/src/rev/c9be76d6f7ce
branches: trunk
changeset: 750198:c9be76d6f7ce
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Dec 20 03:50:56 2009 +0000
description:
make CPU_INFO_FOREACH() set the iterator count to '0' in the !MP case.
diffstat:
sys/arch/sparc/sparc/cpuvar.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 93f16d46ecbb -r c9be76d6f7ce sys/arch/sparc/sparc/cpuvar.h
--- a/sys/arch/sparc/sparc/cpuvar.h Sun Dec 20 03:48:30 2009 +0000
+++ b/sys/arch/sparc/sparc/cpuvar.h Sun Dec 20 03:50:56 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuvar.h,v 1.80 2009/12/20 03:38:59 mrg Exp $ */
+/* $NetBSD: cpuvar.h,v 1.81 2009/12/20 03:50:56 mrg Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -425,7 +425,7 @@
#if defined(MULTIPROCESSOR) || defined(MODULAR) || defined(_MODULE)
#define CPU_INFO_FOREACH(cii, cp) cii = 0; (cp = cpus[cii]) && cp->eintstack && cii < sparc_ncpus; cii++
#else
-#define CPU_INFO_FOREACH(cii, cp) (void)cii, cp = curcpu(); cp != NULL; cp = NULL
+#define CPU_INFO_FOREACH(cii, cp) cii = 0, cp = curcpu(); cp != NULL; cp = NULL
#endif
/*
Home |
Main Index |
Thread Index |
Old Index