/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | cpupm_mach.h | 74 int (*cpus_init)(cpu_t *); 75 void (*cpus_fini)(cpu_t *); 77 void (*cpus_stop)(cpu_t *); 170 extern void (*cpupm_ppm_alloc_pstate_domains)(cpu_t *); 171 extern void (*cpupm_ppm_free_pstate_domains)(cpu_t *); 176 extern void cpupm_init(cpu_t *); 177 extern void cpupm_fini(cpu_t *); 178 extern void cpupm_start(cpu_t *); 179 extern void cpupm_stop(cpu_t *); 180 extern boolean_t cpupm_is_ready(cpu_t *); [all …]
|
H A D | machsystm.h | 75 extern int mach_cpu_start(cpu_t *, void *); 77 extern int mach_cpu_stop(cpu_t *, void *); 80 extern int mach_cpu_create_device_node(cpu_t *, dev_info_t **); 81 extern int mach_cpu_get_device_node(cpu_t *, dev_info_t **); 93 extern void kcpc_hw_init(cpu_t *cp); 94 extern void kcpc_hw_fini(cpu_t *cp); 140 extern void (*disp_enq_thread)(cpu_t *, int); 141 extern void (*non_deep_idle_disp_enq_thread)(cpu_t *, int);
|
H A D | cpu_idle.h | 64 extern void cstate_wakeup(cpu_t *, int); 66 extern void cpu_wakeup(cpu_t *, int); 67 extern void cpu_wakeup_mwait(cpu_t *, int);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | cpuvar.h | 247 } cpu_t; typedef 512 extern cpu_t *cpu_list; /* list of CPUs */ 513 extern cpu_t *cpu_active; /* list of active CPUs */ 523 extern cpu_t *clock_cpu_list; 564 uint64_t *, cpu_t *); \ 596 void cpu_list_init(cpu_t *); 597 void cpu_add_unit(cpu_t *); 599 void cpu_add_active(cpu_t *); 600 void cpu_kstat_init(cpu_t *); 601 void cpu_visibility_add(cpu_t *, struct zone *); [all …]
|
H A D | pg.h | 162 cpu_pg_t *pg_cpu_init(cpu_t *, boolean_t deferred_init); 163 void pg_cpu_fini(cpu_t *, cpu_pg_t *cpu_pg_deferred); 164 void pg_cpu_active(cpu_t *); 165 void pg_cpu_inactive(cpu_t *); 166 void pg_cpu_startup(cpu_t *); 167 void pg_cpu_bootstrap(cpu_t *); 168 int pg_cpu_is_bootstrapped(cpu_t *); 173 void pg_cpupart_in(cpu_t *, struct cpupart *); 174 void pg_cpupart_out(cpu_t *, struct cpupart *); 175 void pg_cpupart_move(cpu_t *, struct cpupart *, struct cpupart *); [all …]
|
H A D | pghw.h | 151 extern void pghw_init(pghw_t *, cpu_t *, pghw_type_t); 153 extern void pghw_cpu_add(pghw_t *, cpu_t *); 154 extern pghw_t *pghw_place_cpu(cpu_t *, pghw_type_t); 160 extern void pghw_physid_create(cpu_t *); 161 extern void pghw_physid_destroy(cpu_t *); 166 extern pghw_t *pghw_find_pg(cpu_t *, pghw_type_t); 171 extern int pg_plat_hw_shared(cpu_t *, pghw_type_t); 172 extern int pg_plat_cpus_share(cpu_t *, cpu_t *, pghw_type_t); 173 extern id_t pg_plat_hw_instance_id(cpu_t *, pghw_type_t); 187 extern id_t pg_plat_get_core_id(cpu_t *);
|
H A D | cyclic.h | 71 void (*cyo_online)(void *, cpu_t *, cyc_handler_t *, cyc_time_t *); 72 void (*cyo_offline)(void *, cpu_t *, void *); 83 extern void cyclic_bind(cyclic_id_t, cpu_t *, cpupart_t *); 88 extern int cyclic_offline(cpu_t *cpu); 89 extern void cyclic_online(cpu_t *cpu); 90 extern int cyclic_juggle(cpu_t *cpu); 91 extern void cyclic_move_in(cpu_t *); 92 extern int cyclic_move_out(cpu_t *); 96 extern void cyclic_fire(cpu_t *cpu); 97 extern void cyclic_softint(cpu_t *cpu, cyc_level_t level);
|
H A D | cmt.h | 101 void pg_cmt_load(cpu_t *, int); 102 void pg_cmt_cpu_startup(cpu_t *); 103 int pg_cmt_can_migrate(cpu_t *, cpu_t *); 114 cpu_t *cmt_balance(kthread_t *, cpu_t *);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_intr.c | 48 cpu_intr_on(cpu_t *cp) in cpu_intr_on() 57 cpu_t * 58 cpu_intr_next(cpu_t *cp) in cpu_intr_next() 60 cpu_t *c; in cpu_intr_next() 78 cpu_intr_count(cpu_t *cp) in cpu_intr_count() 80 cpu_t *c; in cpu_intr_count() 97 cpu_intr_enable(cpu_t *cp) in cpu_intr_enable() 116 cpu_intr_disable(cpu_t *cp) in cpu_intr_disable()
|
H A D | pg.c | 338 pg_cpu_find_pg(cpu_t *cp, group_t *set) in pg_cpu_find_pg() 358 cpu_t * 361 cpu_t *cpu; in pg_cpu_next() 372 pg_cpu_find(pg_t *pg, cpu_t *cp) in pg_cpu_find() 462 pg_cpu_add(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) in pg_cpu_add() 489 pg_cpu_delete(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) in pg_cpu_delete() 553 pg_cpu_init(cpu_t *cp, boolean_t deferred_init) in pg_cpu_init() 600 pg_cpu_fini(cpu_t *cp, cpu_pg_t *cpu_pg_deferred) in pg_cpu_fini() 639 pg_cpu_active(cpu_t *cp) in pg_cpu_active() 658 pg_cpu_inactive(cpu_t *cp) in pg_cpu_inactive() [all …]
|
H A D | cap_util.c | 300 void cu_cpc_program(cpu_t *cp, int *err); 301 void cu_cpc_unprogram(cpu_t *cp, int *err); 309 static int cu_cpc_init(cpu_t *cp, kcpc_request_list_t *reqs, int nreqs); 314 static void cu_cpu_disable(cpu_t *cp); 315 static void cu_cpu_enable(cpu_t *cp); 316 static int cu_cpu_init(cpu_t *cp, kcpc_request_list_t *reqs); 317 static int cu_cpu_fini(cpu_t *cp); 320 static int cu_cpu_run(cpu_t *cp, cu_cpu_func_t func, uintptr_t arg); 331 cpu_t *cp; in cu_disable() 346 cpu_t *cp; in cu_enable() [all …]
|
H A D | cpu.c | 69 extern int mp_cpu_start(cpu_t *); 70 extern int mp_cpu_stop(cpu_t *); 71 extern int mp_cpu_poweron(cpu_t *); 72 extern int mp_cpu_poweroff(cpu_t *); 75 extern void mp_cpu_faulted_enter(cpu_t *); 76 extern void mp_cpu_faulted_exit(cpu_t *); 80 extern char *cpu_fru_fmri(cpu_t *cp); 83 static void cpu_add_active_internal(cpu_t *cp); 84 static void cpu_remove_active(cpu_t *cp); 85 static void cpu_info_kstat_create(cpu_t *cp); [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpupm_mach.c | 52 void (*cpupm_ppm_alloc_pstate_domains)(cpu_t *); 60 void (*cpupm_ppm_free_pstate_domains)(cpu_t *); 85 static void cpupm_free_notify_handlers(cpu_t *); 121 extern boolean_t cpupm_intel_init(cpu_t *); 122 extern boolean_t cpupm_amd_init(cpu_t *); 125 boolean_t (*cpuv_init)(cpu_t *); 144 cpupm_init(cpu_t *cp) in cpupm_init() 296 cpupm_free(cpu_t *cp, boolean_t cpupm_stop) in cpupm_free() 344 cpupm_fini(cpu_t *cp) in cpupm_fini() 354 cpupm_start(cpu_t *cp) in cpupm_start() [all …]
|
H A D | cpupm_throttle.c | 34 static int cpupm_throttle_init(cpu_t *); 35 static void cpupm_throttle_fini(cpu_t *); 37 static void cpupm_throttle_stop(cpu_t *); 228 cpupm_throttle_init(cpu_t *cp) in cpupm_throttle_init() 269 cpupm_throttle_fini(cpu_t *cp) in cpupm_throttle_fini() 280 cpupm_throttle_stop(cpu_t *cp) in cpupm_throttle_stop() 297 cpu_t *cp = cpu[cpu_id]; in cpupm_throttle_get_max() 333 cpu_t *cp = ctx; in cpupm_throttle_manage_notification()
|
H A D | pwrnow.c | 37 static int pwrnow_init(cpu_t *); 38 static void pwrnow_fini(cpu_t *); 40 static void pwrnow_stop(cpu_t *); 171 pwrnow_init(cpu_t *cp) in pwrnow_init() 224 pwrnow_fini(cpu_t *cp) in pwrnow_fini() 302 pwrnow_stop(cpu_t *cp) in pwrnow_stop()
|
H A D | speedstep.c | 42 static int speedstep_init(cpu_t *); 43 static void speedstep_fini(cpu_t *); 45 static void speedstep_stop(cpu_t *); 186 speedstep_init(cpu_t *cp) in speedstep_init() 239 speedstep_fini(cpu_t *cp) in speedstep_fini() 254 speedstep_stop(cpu_t *cp) in speedstep_stop()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 93 static void generic_enq_thread(cpu_t *, int); 94 void (*disp_enq_thread)(cpu_t *, int) = generic_enq_thread; 107 static void cpu_resched(cpu_t *cp, pri_t tpri); 158 static kthread_t *disp_getwork(cpu_t *to); 339 cpu_t *cpup; in cpu_dispqalloc() 432 disp_cpu_init(cpu_t *cp) in disp_cpu_init() 464 disp_cpu_fini(cpu_t *cp) in disp_cpu_fini() 530 cpu_t *cp = CPU; in disp_anywork() 531 cpu_t *ocp; in disp_anywork() 579 cpu_t *cp = CPU; in idle_enter() [all …]
|
H A D | cmt.c | 140 static void pg_cmt_cpu_init(cpu_t *, cpu_pg_t *); 141 static void pg_cmt_cpu_fini(cpu_t *, cpu_pg_t *); 142 static void pg_cmt_cpu_active(cpu_t *); 143 static void pg_cmt_cpu_inactive(cpu_t *); 144 static void pg_cmt_cpupart_in(cpu_t *, cpupart_t *); 145 static void pg_cmt_cpupart_move(cpu_t *, cpupart_t *, cpupart_t *); 149 static int pg_cmt_cpu_belongs(pg_t *, cpu_t *); 153 static void cmt_ev_thread_swtch(pg_t *, cpu_t *, hrtime_t, 155 static void cmt_ev_thread_swtch_pwr(pg_t *, cpu_t *, hrtime_t, 157 static void cmt_ev_thread_remain_pwr(pg_t *, cpu_t *, kthread_t *); [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | cmp.c | 91 pg_plat_hw_shared(cpu_t *cp, pghw_type_t hw) in pg_plat_hw_shared() 105 pg_plat_cpus_share(cpu_t *cpu_a, cpu_t *cpu_b, pghw_type_t hw) in pg_plat_cpus_share() 116 pg_plat_hw_instance_id(cpu_t *cpu, pghw_type_t hw) in pg_plat_hw_instance_id() 174 pg_plat_get_core_id(cpu_t *cpu) in pg_plat_get_core_id() 219 cu_plat_cpc_init(cpu_t *cp, kcpc_request_list_t *reqs, int nreqs) in cu_plat_cpc_init()
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | cmp.c | 95 cpu_t *cpu; in cmp_error_resteer() 144 pg_plat_hw_shared(cpu_t *cp, pghw_type_t hw) in pg_plat_hw_shared() 169 pg_plat_cpus_share(cpu_t *cpu_a, cpu_t *cpu_b, pghw_type_t hw) in pg_plat_cpus_share() 193 pg_plat_hw_instance_id(cpu_t *cpu, pghw_type_t hw) in pg_plat_hw_instance_id() 268 pg_plat_get_core_id(cpu_t *cp) in pg_plat_get_core_id() 314 cu_plat_cpc_init(cpu_t *cp, kcpc_request_list_t *reqs, int nreqs) in cu_plat_cpc_init()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | cbe.c | 54 static cpu_t *volatile cbe_xcall_cpu; 81 cpu_t *cpu = CPU; in cbe_low_level() 96 cpu_t *cpu = CPU; in cbe_fire() 176 cbe_xcall(void *arg, cpu_t *dest, cyc_func_t func, void *farg) in cbe_xcall() 206 cbe_configure(cpu_t *cpu) in cbe_configure() 215 ASSERT(!CPU_IN_SET(cbe_enabled, ((cpu_t *)arg)->cpu_id)); in cbe_unconfigure() 258 processorid_t me = ((cpu_t *)arg)->cpu_id; in cbe_enable() 277 processorid_t me = ((cpu_t *)arg)->cpu_id; in cbe_disable()
|
H A D | cpudrv_mach.c | 65 cpu_t *cp = cpudsp->cp; in cpudrv_change_speed() 185 cpu_t *cp; in cpudrv_get_topspeed() 213 cpu_t *cp; in cpudrv_notify_handler() 241 cpu_t *cp = cpudsp->cp; in cpudrv_install_notify_handler() 249 cpu_t *cp = cpudsp->cp; in cpudrv_uninstall_notify_handler() 355 cpudrv_power_ready(cpu_t *cp) in cpudrv_power_ready()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | smt.c | 213 yield_to_vcpu(cpu_t *sib, zoneid_t zoneid) in yield_to_vcpu() 456 cpu_t *cp; in smt_mark() 531 smt_should_run(kthread_t *t, cpu_t *cp) in smt_should_run() 534 cpu_t *sib; in smt_should_run() 583 static cpu_t * 584 smt_find_sibling(cpu_t *cp) in smt_find_sibling() 630 cpu_t *sib; in smt_disable() 631 cpu_t *cp; in smt_disable() 675 smt_can_enable(cpu_t *cp, int flags) in smt_can_enable() 711 cpu_t *scp = CPU; in smt_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mp_machdep.c | 96 static void cpu_wakeup(cpu_t *, int); 99 static void cpu_wakeup_mwait(cpu_t *, int); 101 static int mach_cpu_create_devinfo(cpu_t *cp, dev_info_t **dipp); 108 extern int cpuid_get_coreid(cpu_t *); 109 extern int cpuid_get_chipid(cpu_t *); 169 int (*psm_cpu_create_devinfo)(cpu_t *, dev_info_t **) = mach_cpu_create_devinfo; 170 int (*psm_cpu_get_devinfo)(cpu_t *, dev_info_t **) = NULL; 227 void (*non_deep_idle_disp_enq_thread)(cpu_t *, int); 240 pg_plat_hw_shared(cpu_t *cp, pghw_type_t hw) in pg_plat_hw_shared() 293 pg_plat_cpus_share(cpu_t *cpu_a, cpu_t *cpu_b, pghw_type_t hw) in pg_plat_cpus_share() [all …]
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/generic_cpu/ |
H A D | gcpu.c | 285 cpu_t *cp; in cmihdl_cb() 289 cp = mdb_alloc(sizeof (cpu_t), UM_SLEEP); in cmihdl_cb() 290 if (mdb_vread(cp, sizeof (cpu_t), in cmihdl_cb() 291 (uintptr_t)hdl->cmih_hdlpriv) != sizeof (cpu_t)) { in cmihdl_cb() 294 mdb_free(cp, sizeof (cpu_t)); in cmihdl_cb() 305 mdb_free(cp, sizeof (cpu_t)); in cmihdl_cb() 326 cpu_t *cp; in cmihdl_disp() 398 cp = mdb_alloc(sizeof (cpu_t), UM_SLEEP); in cmihdl_disp() 400 if (mdb_vread(cp, sizeof (cpu_t), in cmihdl_disp() 401 (uintptr_t)hdl->cmih_hdlpriv) != sizeof (cpu_t)) { in cmihdl_disp() [all …]
|