diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-12 20:03:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-12 20:03:26 +0000 |
commit | 2d53e75cf5199a1b3879c54ce8400ecf9eb9be82 (patch) | |
tree | 7ccca18235ca8b0f4023572c790ba13cc9ed870a | |
parent | 35841141963bbdf6e5b211ae01a1ebc91413509e (diff) |
Increment ncpus when hatching a secondary processor.
-rw-r--r-- | sys/arch/aviion/aviion/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/luna88k/luna88k/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c index 3db61baedb1..fe4951338b7 100644 --- a/sys/arch/aviion/aviion/machdep.c +++ b/sys/arch/aviion/aviion/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.5 2006/05/21 12:22:01 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.6 2007/05/12 20:03:22 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -680,6 +680,7 @@ secondary_main() struct cpu_info *ci = curcpu(); cpu_configuration_print(0); + ncpus++; __cpu_simple_unlock(&cpu_mutex); microuptime(&ci->ci_schedstate.spc_runtime); diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c index e7294a8dd8b..ed80eb8cef7 100644 --- a/sys/arch/luna88k/luna88k/machdep.c +++ b/sys/arch/luna88k/luna88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.39 2007/05/12 20:02:14 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.40 2007/05/12 20:03:25 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -870,6 +870,7 @@ secondary_main() struct cpu_info *ci = curcpu(); cpu_configuration_print(0); + ncpus++; microuptime(&ci->ci_schedstate.spc_runtime); diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index 3bdd8849c79..82764f36487 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.185 2006/11/18 22:58:28 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.186 2007/05/12 20:03:25 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -791,6 +791,7 @@ secondary_main() struct cpu_info *ci = curcpu(); cpu_configuration_print(0); + ncpus++; __cpu_simple_unlock(&cpu_mutex); microuptime(&ci->ci_schedstate.spc_runtime); |