Lines Matching refs:cpun
846 long cpun = cp->cpu_id;
852 t = thread_create(NULL, 0, cpu_pause, (void *)cpun,
878 int cpun = cp->cpu_id;
885 ASSERT(safe_list[cpun] == PAUSE_IDLE);
892 ASSERT(safe_list[cpun] == PAUSE_IDLE);
893 safe_list[cpun] = PAUSE_DIE;
903 while (safe_list[cpun] != PAUSE_DEAD) {
907 safe_list[cpun] = PAUSE_IDLE;
1064 cpu_get_all(processorid_t cpun)
1068 if (cpun >= NCPU || cpun < 0 || !CPU_IN_SET(cpu_available, cpun))
1070 return (cpu[cpun]);
1074 * Check whether cpun is a valid processor id and whether it should be
1079 cpu_get(processorid_t cpun)
1084 c = cpu_get_all(cpun);
2401 processorid_t cpun;
2408 cpun = cp->cpu_id;
2413 (void) snprintf(name, sizeof (name), "cpu_stat%d", cpun);
2414 if ((ksp = kstat_hold_byname("cpu_stat", cpun, name, ALL_ZONES))
2419 if ((ksp = kstat_hold_byname("cpu", cpun, "sys", ALL_ZONES)) != NULL) {
2423 if ((ksp = kstat_hold_byname("cpu", cpun, "vm", ALL_ZONES)) != NULL) {
2427 if ((ksp = kstat_hold_byname("cpu", cpun, "intrstat", ALL_ZONES)) !=
2477 processorid_t cpun;
2484 cpun = cp->cpu_id;
2490 if ((ksp = kstat_hold_byname("cpu", cpun, "intrstat", ALL_ZONES)) !=
2495 if ((ksp = kstat_hold_byname("cpu", cpun, "vm", ALL_ZONES)) != NULL) {
2499 if ((ksp = kstat_hold_byname("cpu", cpun, "sys", ALL_ZONES)) != NULL) {
2503 (void) snprintf(name, sizeof (name), "cpu_stat%d", cpun);
2504 if ((ksp = kstat_hold_byname("cpu_stat", cpun, name, ALL_ZONES))