summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2001-07-26 18:47:46 +0000
committerbmilekic <bmilekic@FreeBSD.org>2001-07-26 18:47:46 +0000
commit0caeab3ccdc5926c530383c04c96653559f47400 (patch)
treec92cd4663cb459d84696efa19cbdcbe5005277c8 /sys/powerpc
parentd3c6cce7de3c0e2296ad3aaaec504d56bd72ca1b (diff)
downloadFreeBSD-src-0caeab3ccdc5926c530383c04c96653559f47400.zip
FreeBSD-src-0caeab3ccdc5926c530383c04c96653559f47400.tar.gz
- Do not handle the per-CPU containers in mbuf code as though the cpuids
were indices in a dense array. The cpuids are a sparse set and treat them as such, setting up containers only for CPUs activated during mb_init(). - Fix netstat(1) and systat(1) to treat the per-CPU stats area as a sparse map, in accordance with the above. This allows us to properly boot with certain CPUs disactivated. However, if we later decide to re-activate said CPUs, we will barf until we decide to implement CPU spinon/spinoff callback hooks to allow for said CPUs' per-CPU containers to get configured on their activation. Reported by: mjacob Partially (sys/ diffs) Submitted by: mjacob
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/mp_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/mp_machdep.c b/sys/powerpc/powerpc/mp_machdep.c
index a8e5819..5e4c339 100644
--- a/sys/powerpc/powerpc/mp_machdep.c
+++ b/sys/powerpc/powerpc/mp_machdep.c
@@ -51,6 +51,7 @@ int boot_cpu_id;
int
cpu_mp_probe(void)
{
+ all_cpus = 1; /* needed for MB init code */
return 0;
}
OpenPOWER on IntegriCloud