Home
last modified time | relevance | path

Searched refs:cpu_flags (Results 1 – 25 of 66) sorted by relevance

123

/illumos-gate/usr/src/uts/common/os/
H A Dcpu.c973 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 Dcyclic.c1609 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 Dsoftint.c234 (cp->cpu_flags & CPU_ENABLE) == 0 || in softcall_choose_cpu()
430 if (CPU->cpu_flags & (CPU_QUIESCED|CPU_OFFLINE)) { in softint()
H A Dcpu_intr.c51 return ((cp->cpu_flags & CPU_ENABLE) != 0); in cpu_intr_on()
/illumos-gate/usr/src/uts/sun4/os/
H A Dmp_startup.c171 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 Dmp_states.c223 ASSERT(cp->cpu_flags & CPU_QUIESCED); in mp_cpu_quiesce()
231 cp->cpu_flags &= ~CPU_READY; in mp_cpu_quiesce()
H A Dintr.c422 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 Dmach_mp_states.c250 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 Dmach_startup.c121 if (CPU->cpu_flags & CPU_OFFLINE) in cpu_halt()
196 (!hset_update && (CPU->cpu_flags & CPU_OFFLINE)))) { in cpu_halt()
H A Dcpc_subr.c69 kcpc_hw_startup_cpu(CPU->cpu_flags); in kcpc_hw_init()
H A Dsuspend.c396 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 Dsmt.c643 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 Ddr_cpu.c213 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 Ddr_cpu.c256 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 Dx_call.c258 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 Dmp_pc.c587 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 Dmp_startup.c478 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 Dmp_xen.c642 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 Dmach_kdi.c127 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 Dprocessor_bind.c214 (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 Dmach_startup.c242 if (CPU->cpu_flags & CPU_OFFLINE) in cpu_halt()
317 (!hset_update && (CPU->cpu_flags & CPU_OFFLINE)))) { in cpu_halt()
H A Dmach_cpu_states.c269 cpu[i]->cpu_flags &= ~CPU_READY; in panic_stopcpus()
270 cpu[i]->cpu_flags |= CPU_QUIESCED; in panic_stopcpus()
H A Dcpc_subr.c70 kcpc_hw_startup_cpu(CPU->cpu_flags); in kcpc_hw_init()
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp.c534 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 Ddcpc.c532 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()

123