diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-10-26 13:42:55 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-10-26 13:42:55 +0000 |
commit | d5dc67e08502d113b98506da60b5568ef5a7e451 (patch) | |
tree | 5882eb9257f4745f9adf30069cbf26146447e81b /sys/arch/octeon | |
parent | 92cca5fe4c73e5aedec7acd75a454661bbde8752 (diff) |
Increment `ncpus' to its final value already during autoconfiguration so
that percpu data areas get allocated properly on mips64 platforms. It is
too late to set the value during launch of secondary CPUs.
ok jasper@ kettenis@ dlg@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/octeon/machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/octeon/octeon/machdep.c b/sys/arch/octeon/octeon/machdep.c index a01da17db90..00f2a7cac34 100644 --- a/sys/arch/octeon/octeon/machdep.c +++ b/sys/arch/octeon/octeon/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.76 2016/10/09 11:25:40 tom Exp $ */ +/* $OpenBSD: machdep.c,v 1.77 2016/10/26 13:42:54 visa Exp $ */ /* * Copyright (c) 2009, 2010 Miodrag Vallat. @@ -859,7 +859,6 @@ hw_cpu_hatch(struct cpu_info *ci) printf("cpu%lu launched\n", cpu_number()); (*md_startclock)(ci); - ncpus++; cpuset_add(&cpus_running, ci); octeon_intr_init(); mips64_ipi_init(); |