Lines Matching refs:user_ncpus
182 uint_t user_ncpus = 0, real_ncpus, copy_ncpus;
187 if (copyin(numcpusp, &user_ncpus, sizeof (uint_t)) != 0)
191 if (user_ncpus > max_ncpus) /* sanity check */
192 user_ncpus = max_ncpus;
193 if (user_ncpus != 0 && cpulistp != NULL)
194 pset_cpus = kmem_alloc(sizeof (processorid_t) * user_ncpus,
197 real_ncpus = user_ncpus;
211 if (user_ncpus != 0 && cpulistp != NULL) {
212 copy_ncpus = MIN(real_ncpus, user_ncpus);
220 kmem_free(pset_cpus, sizeof (processorid_t) * user_ncpus);
236 kmem_free(pset_cpus, sizeof (processorid_t) * user_ncpus);