Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/dev Count the cpus as they attach so that CPU...
details: https://anonhg.NetBSD.org/src/rev/6567025d80c0
branches: trunk
changeset: 779359:6567025d80c0
user: skrll <skrll%NetBSD.org@localhost>
date: Wed May 23 07:06:02 2012 +0000
description:
Count the cpus as they attach so that CPU_INFO_FOREACH works before
hatching the secondary cpus.
diffstat:
sys/arch/hp700/dev/cpu.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 25d8248df244 -r 6567025d80c0 sys/arch/hp700/dev/cpu.c
--- a/sys/arch/hp700/dev/cpu.c Tue May 22 21:14:37 2012 +0000
+++ b/sys/arch/hp700/dev/cpu.c Wed May 23 07:06:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.24 2012/05/21 21:15:39 skrll Exp $ */
+/* $NetBSD: cpu.c,v 1.25 2012/05/23 07:06:02 skrll Exp $ */
/* $OpenBSD: cpu.c,v 1.29 2009/02/08 18:33:28 miod Exp $ */
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.24 2012/05/21 21:15:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.25 2012/05/23 07:06:02 skrll Exp $");
#include "opt_multiprocessor.h"
@@ -179,7 +179,6 @@
if (ci->ci_hpa == hppa_mcpuhpa) {
ci->ci_flags |= CPUF_PRIMARY|CPUF_RUNNING;
- hppa_ncpu++;
} else {
int err;
@@ -190,6 +189,7 @@
return;
}
}
+ hppa_ncpu++;
#endif
@@ -266,9 +266,6 @@
struct cpu_info *ci = curcpu();
ci->ci_flags |= CPUF_RUNNING;
-#if 0
- hppa_ncpu++;
-#endif
/* Wait for additional CPUs to spinup. */
while (!start_secondary_cpu)
Home |
Main Index |
Thread Index |
Old Index