/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu.c | 973 if ((cp->cpu_flags & (CPU_QUIESCED | CPU_READY)) != CPU_READY) { in cpu_pause_start() 1131 return (cpu_flagged_online(cpu->cpu_flags)); in cpu_is_online() 1141 return (cpu_flagged_offline(cpu->cpu_flags)); in cpu_is_offline() 1151 return (cpu_flagged_poweredoff(cpu->cpu_flags)); in cpu_is_poweredoff() 1161 return (cpu_flagged_nointr(cpu->cpu_flags)); in cpu_is_nointr() 1171 return (cpu_flagged_active(cpu->cpu_flags)); in cpu_is_active() 1178 cpu_flagged_online(cpu_flag_t cpu_flags) in cpu_flagged_online() argument 1180 return (cpu_flagged_active(cpu_flags) && in cpu_flagged_online() 1181 (cpu_flags & CPU_ENABLE)); in cpu_flagged_online() 1185 cpu_flagged_offline(cpu_flag_t cpu_flags) in cpu_flagged_offline() argument [all …]
|
H A D | cyclic.c | 1609 if (c->cpu_flags & CPU_ENABLE) in cyclic_pick_cpu() 1634 ASSERT(avoid->cpu_flags & CPU_ENABLE); in cyclic_pick_cpu() 1734 ASSERT(!(cpu->cyp_cpu->cpu_flags & CPU_OFFLINE)); in cyclic_add_here() 2083 ASSERT(!(dest->cyp_cpu->cpu_flags & (CPU_QUIESCED | CPU_OFFLINE))); in cyclic_juggle_one_to() 2181 ASSERT(!(c->cpu_flags & CPU_OFFLINE)); in cyclic_juggle_one() 2220 if (!(c->cpu_flags & CPU_ENABLE)) { in cyclic_unbind_cpu() 2239 ASSERT(!(d->cpu_flags & CPU_OFFLINE)); in cyclic_bind_cpu() 2240 ASSERT(!(c->cpu_flags & CPU_OFFLINE)); in cyclic_bind_cpu() 2277 if (!(c->cpu_flags & CPU_ENABLE) && !(cyc->cy_flags & CYF_CPU_BOUND)) { in cyclic_unbind_cpupart() 2294 ASSERT(!(c->cpu_flags & CPU_OFFLINE)); in cyclic_bind_cpupart() [all …]
|
H A D | softint.c | 234 (cp->cpu_flags & CPU_ENABLE) == 0 || in softcall_choose_cpu() 430 if (CPU->cpu_flags & (CPU_QUIESCED|CPU_OFFLINE)) { in softint()
|
H A D | cpu_intr.c | 51 return ((cp->cpu_flags & CPU_ENABLE) != 0); in cpu_intr_on()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 171 if (!(cp->cpu_flags & CPU_ENABLE)) in cold_flag_set() 174 cp->cpu_flags |= CPU_RUNNING | CPU_ENABLE | CPU_EXISTS; in cold_flag_set() 180 cp->cpu_flags |= CPU_READY; /* ready */ in cold_flag_set() 195 cp->cpu_flags |= CPU_RUNNING | CPU_READY | CPU_EXISTS in warm_flag_set() 337 if (cpu0.cpu_flags == 0) { in setup_cpu_common() 604 ushort_t original_flags = cp->cpu_flags; in slave_startup() 649 while (((volatile ushort_t)cp->cpu_flags) & CPU_QUIESCED) in slave_startup()
|
H A D | mp_states.c | 223 ASSERT(cp->cpu_flags & CPU_QUIESCED); in mp_cpu_quiesce() 231 cp->cpu_flags &= ~CPU_READY; in mp_cpu_quiesce()
|
H A D | intr.c | 422 cp->cpu_flags &= ~CPU_ENABLE; in cpu_disable_intr() 441 cp->cpu_flags |= CPU_ENABLE; in cpu_enable_intr() 726 if ((cp->cpu_flags & CPU_ENABLE) == 0) in intr_dist_cpuid()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_mp_states.c | 250 cp->cpu_flags = CPU_OFFLINE | CPU_QUIESCED | CPU_POWEROFF; in plat_cpu_poweroff() 262 cp->cpu_flags = CPU_OFFLINE | CPU_QUIESCED | CPU_FAULTED; in plat_cpu_poweroff() 275 cp->cpu_flags &= ~CPU_POWEROFF; in plat_cpu_poweron()
|
H A D | mach_startup.c | 121 if (CPU->cpu_flags & CPU_OFFLINE) in cpu_halt() 196 (!hset_update && (CPU->cpu_flags & CPU_OFFLINE)))) { in cpu_halt()
|
H A D | cpc_subr.c | 69 kcpc_hw_startup_cpu(CPU->cpu_flags); in kcpc_hw_init()
|
H A D | suspend.c | 396 if ((cp->cpu_flags & CPU_OFFLINE) == 0) in update_cpu_mappings() 438 if ((cp->cpu_flags & CPU_OFFLINE) == 0) in update_cpu_mappings()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | smt.c | 643 if (cp->cpu_flags & CPU_DISABLED) { in smt_disable() 644 VERIFY(cp->cpu_flags & CPU_OFFLINE); in smt_disable() 648 if (cp->cpu_flags & (CPU_FAULTED | CPU_SPARE)) { in smt_disable() 653 if ((cp->cpu_flags & (CPU_READY | CPU_OFFLINE)) != CPU_READY) { in smt_disable() 654 cp->cpu_flags |= CPU_DISABLED; in smt_disable() 661 cp->cpu_flags |= CPU_DISABLED; in smt_disable() 677 VERIFY(cp->cpu_flags & CPU_DISABLED); in smt_can_enable()
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_cpu.c | 213 cp->sbc_cpu_flags = cpu[cpuid]->cpu_flags; in dr_init_cpu_unit() 367 int cpu_flags = 0; in dr_pre_release_cpu() local 414 up->sbc_cpu_flags = cp->cpu_flags; in dr_pre_release_cpu() 418 cpu_flags = CPU_FORCED; in dr_pre_release_cpu() 421 if (cpu_offline(cp, cpu_flags)) { in dr_pre_release_cpu() 477 int cpu_flags = 0; in dr_pre_detach_cpu() local 525 cpu_flags = CPU_FORCED; in dr_pre_detach_cpu() 528 if (cpu_offline(cp, cpu_flags)) { in dr_pre_detach_cpu()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_cpu.c | 256 cp->sbc_cpu_flags = cpu[cpuid]->cpu_flags; in dr_init_cpu_unit() 423 int cpu_flags = 0; in dr_pre_release_cpu() local 467 up->sbc_cpu_flags = cp->cpu_flags; in dr_pre_release_cpu() 471 cpu_flags = CPU_FORCED; in dr_pre_release_cpu() 474 if (cpu_offline(cp, cpu_flags)) { in dr_pre_release_cpu() 532 int cpu_flags = 0; in dr_pre_detach_cpu() local 579 cpu_flags = CPU_FORCED; in dr_pre_detach_cpu() 582 if (cpu_offline(cp, cpu_flags)) { in dr_pre_detach_cpu()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | x_call.c | 258 ASSERT((cpup->cpu_flags & CPU_READY) == 0); in xc_fini_cpu() 275 ASSERT((cpup->cpu_flags & CPU_READY) == 0); in xc_flush_cpu() 470 if (BT_TEST(set, CPU->cpu_id) && (CPU->cpu_flags & CPU_READY) && in xc_common() 495 if (cpup == NULL || !(cpup->cpu_flags & CPU_READY)) in xc_common() 564 if (cpup == NULL || !(cpup->cpu_flags & CPU_READY)) in xc_priority_common() 606 if (cpup == NULL || !(cpup->cpu_flags & CPU_READY) || in xc_priority_common()
|
H A D | mp_pc.c | 587 ASSERT((cp->cpu_flags & CPU_OFFLINE) != 0); in mp_cpu_poweroff() 588 ASSERT((cp->cpu_flags & CPU_QUIESCED) != 0); in mp_cpu_poweroff() 641 ASSERT((cp->cpu_flags & CPU_READY) == 0); in mp_cpu_poweroff() 642 ASSERT((cp->cpu_flags & CPU_RUNNING) == 0); in mp_cpu_poweroff() 643 cp->cpu_flags = CPU_OFFLINE | CPU_QUIESCED | CPU_POWEROFF; in mp_cpu_poweroff()
|
H A D | mp_startup.c | 478 cp->cpu_flags = CPU_OFFLINE | CPU_QUIESCED | CPU_POWEROFF; in mp_cpu_configure_common() 514 cp->cpu_flags = 0; in mp_cpu_unconfigure_common() 1803 cp->cpu_flags &= ~(CPU_POWEROFF | CPU_QUIESCED); in mp_startup_common() 1825 cp->cpu_flags |= CPU_RUNNING | CPU_READY | CPU_EXISTS; in mp_startup_common() 1857 cp->cpu_flags &= ~CPU_OFFLINE; in mp_startup_common() 2004 cp->cpu_flags &= ~CPU_ENABLE; in cpu_disable_intr() 2016 cp->cpu_flags |= CPU_ENABLE; in cpu_enable_intr()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | mp_xen.c | 642 ASSERT(cp->cpu_flags & CPU_QUIESCED); in poweroff_vcpu() 651 if (cp->cpu_flags & CPU_ENABLE) in poweroff_vcpu() 654 cp->cpu_flags |= CPU_POWEROFF | CPU_OFFLINE; in poweroff_vcpu() 655 cp->cpu_flags &= in poweroff_vcpu() 706 if (cp->cpu_flags & CPU_QUIESCED) in vcpu_config_poweroff() 752 cp->cpu_flags |= CPU_EXISTS | CPU_READY | CPU_RUNNING; in poweron_vcpu() 753 cp->cpu_flags &= ~CPU_POWEROFF; in poweron_vcpu()
|
H A D | mach_kdi.c | 127 if (cpu[c] == NULL || !(cpu[c]->cpu_flags & CPU_READY)) in kdi_start_slaves() 143 if (!(cpu[CPU->cpu_id]->cpu_flags & CPU_READY)) in kdi_slave_wait()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | processor_bind.c | 214 (cp->cpu_flags & (CPU_QUIESCED | CPU_OFFLINE))) in processor_bind() 216 else if ((cp->cpu_flags & CPU_READY) == 0) in processor_bind() 349 if ((cp->cpu_flags & CPU_EXISTS) == 0) in processor_bind()
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | mach_startup.c | 242 if (CPU->cpu_flags & CPU_OFFLINE) in cpu_halt() 317 (!hset_update && (CPU->cpu_flags & CPU_OFFLINE)))) { in cpu_halt()
|
H A D | mach_cpu_states.c | 269 cpu[i]->cpu_flags &= ~CPU_READY; in panic_stopcpus() 270 cpu[i]->cpu_flags |= CPU_QUIESCED; in panic_stopcpus()
|
H A D | cpc_subr.c | 70 kcpc_hw_startup_cpu(CPU->cpu_flags); in kcpc_hw_init()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 534 if (!(cp->cpu_flags & CPU_OFFLINE)) { in disp_anywork() 632 while (cp->cpu_flags & CPU_QUIESCED) in idle() 639 if (cp->cpu_flags & CPU_OFFLINE) in idle() 749 (cpup->cpu_flags & CPU_OFFLINE) == 0 && in disp() 769 if (!(cpup->cpu_flags & CPU_OFFLINE)) { in disp() 1294 ASSERT((cp->cpu_flags & CPU_QUIESCED) == 0); in setbackdq() 1444 ASSERT((cp->cpu_flags & CPU_QUIESCED) == 0); in setfrontdq() 1589 ASSERT((cp->cpu_flags & CPU_QUIESCED) == 0); in setkpdq() 2678 ASSERT((bestcpu->cpu_flags & CPU_QUIESCED) == 0); in disp_lowpri_cpu()
|
/illumos-gate/usr/src/uts/common/dtrace/ |
H A D | dcpc.c | 532 if (c->cpu_flags & CPU_OFFLINE) in dcpc_disable_cpu() 669 if (c->cpu_flags & CPU_OFFLINE) in dcpc_program_event() 704 if (c->cpu_flags & CPU_OFFLINE) in dcpc_program_event() 835 if (c->cpu_flags & CPU_OFFLINE) in dcpc_enable()
|