Lines Matching defs:oldcpus
289 cpuid_t *oldcpus = NULL;
328 oldcpus = (cpuid_t *)calloc(newncpus, sizeof (cpuid_t));
329 if (oldcpus == NULL)
334 oldcpus[oldncpus++] = newcpus[idx];
338 dump_cpu_list("oldcpus: ", oldcpus, oldncpus);
346 nvlist_add_int32_array(nvl, "old_cpu_list", oldcpus, oldncpus) ||
357 s_free(oldcpus);
369 cpuid_t *oldcpus = NULL;
397 * Removing CPU capacity, so oldcpus is the current
400 if (get_sys_cpuids(&oldcpus, &oldncpus) == -1) {
415 if (!is_cpu_in_list(oldcpus[idx], cpus, ncpus))
416 newcpus[newncpus++] = oldcpus[idx];
420 dump_cpu_list("oldcpus: ", oldcpus, oldncpus);
428 nvlist_add_int32_array(nvl, "old_cpu_list", oldcpus, oldncpus) ||
458 s_free(oldcpus);
642 cpuid_t *oldcpus = NULL;
697 oldcpus = (cpuid_t *)calloc(newncpus + cidx, sizeof (cpuid_t));
698 if (oldcpus == NULL) {
704 oldcpus[oldncpus++] = newcpus[idx];
708 oldcpus[oldncpus++] = cpus[idx];
712 dump_cpu_list("oldcpus: ", oldcpus, oldncpus);
720 nvlist_add_int32_array(nvl, "old_cpu_list", oldcpus, oldncpus) ||
731 s_free(oldcpus);