version 1.101.2.7, 2007/12/07 17:33:07 |
version 1.139, 2007/12/11 19:07:27 |
Line 2081 pool_cache_bootstrap(pool_cache_t pc, si |
|
Line 2081 pool_cache_bootstrap(pool_cache_t pc, si |
|
/* Allocate per-CPU caches. */ |
/* Allocate per-CPU caches. */ |
memset(pc->pc_cpus, 0, sizeof(pc->pc_cpus)); |
memset(pc->pc_cpus, 0, sizeof(pc->pc_cpus)); |
pc->pc_ncpu = 0; |
pc->pc_ncpu = 0; |
if (ncpu == 0) { |
if (ncpu < 2) { |
/* XXX For sparc: boot CPU is not attached yet. */ |
/* XXX For sparc: boot CPU is not attached yet. */ |
pool_cache_cpu_init1(curcpu(), pc); |
pool_cache_cpu_init1(curcpu(), pc); |
} else { |
} else { |