Lines Matching refs:cp

196 pg_cmt_cpu_startup(cpu_t *cp)
198 pg_ev_thread_swtch(cp, gethrtime_unscaled(), cp->cpu_idle_thread,
199 cp->cpu_thread);
494 * cp->cpu_pg is used by the dispatcher to access the CPU's PG data
497 * cp->cpu_pg.
500 pg_cmt_cpu_init(cpu_t *cp, cpu_pg_t *pgdata)
513 ASSERT(pg_cpu_is_bootstrapped(cp));
539 pg_plat_hw_shared(cp, hw) == 0)
552 * the hw sharing relationship in which cp
558 pg = (pg_cmt_t *)pghw_place_cpu(cp, hw);
567 pghw_init((pghw_t *)pg, cp, hw);
587 pg_cpu_add((pg_t *)pg, cp, pgdata);
595 if (cp->cpu_seqid >=
598 cp->cpu_seqid + 1);
621 lgrp_handle = lgrp_plat_cpu_to_hand(cp->cpu_id);
737 if (cp->cpu_physid) {
738 cp->cpu_physid->cpu_chipid =
739 pg_plat_hw_instance_id(cp, PGHW_CHIP);
740 cp->cpu_physid->cpu_coreid = pg_plat_get_core_id(cp);
747 cp->cpu_physid->cpu_cacheid = pg_cache->pg_id;
763 * cp->cpu_pg is used by the dispatcher to access the CPU's PG data
766 * on the "pgdata" argument, and not cp->cpu_pg.
769 pg_cmt_cpu_fini(cpu_t *cp, cpu_pg_t *pgdata)
780 ASSERT(pg_cpu_is_bootstrapped(cp));
788 lgrp_handle = lgrp_plat_cpu_to_hand(cp->cpu_id);
858 pg_cpu_delete((pg_t *)pg, cp, pgdata);
884 pg_cmt_cpupart_in(cpu_t *cp, cpupart_t *pp)
895 pgs = &cp->cpu_pg->pgs;
899 * is large enough for all CMT PG's to which cp
916 pg_cmt_cpupart_move(cpu_t *cp, cpupart_t *oldpp, cpupart_t *newpp)
930 pgs = &cp->cpu_pg->pgs;
953 if (cpp == cp)
962 bitset_del(&cp->cpu_part->cp_cmt_pgs, pg->pg_id);
972 pg_cmt_cpu_active(cpu_t *cp)
984 pgs = &cp->cpu_pg->pgs;
1000 err = group_add(&pg->cmt_cpus_actv, cp, GRP_NORESIZE);
1031 bitset_add(&pg->cmt_cpus_actv_set, cp->cpu_seqid);
1032 bitset_add(&cp->cpu_part->cp_cmt_pgs, ((pg_t *)pg)->pg_id);
1042 pg_cmt_cpu_inactive(cpu_t *cp)
1057 pgs = &cp->cpu_pg->pgs;
1074 err = group_remove(&pg->cmt_cpus_actv, cp, GRP_NORESIZE);
1077 bitset_del(&pg->cmt_cpus_actv_set, cp->cpu_seqid);
1109 if (cpp == cp)
1112 cpp->cpu_part->cp_id == cp->cpu_part->cp_id) {
1118 bitset_del(&cp->cpu_part->cp_cmt_pgs,
1128 pg_cmt_cpu_belongs(pg_t *pg, cpu_t *cp)
1141 if (pg_plat_cpus_share(cp, pg_cpu, ((pghw_t *)pg)->pghw_hw))
1355 cmt_ev_thread_swtch(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old,
1360 if (old == cp->cpu_idle_thread) {
1362 } else if (new == cp->cpu_idle_thread) {
1377 cmt_ev_thread_swtch_pwr(pg_t *pg, cpu_t *cp, hrtime_t now, kthread_t *old,
1384 if (old == cp->cpu_idle_thread) {
1385 ASSERT(new != cp->cpu_idle_thread);
1393 cpupm_utilization_event(cp, now, dom,
1396 } else if (new == cp->cpu_idle_thread) {
1397 ASSERT(old != cp->cpu_idle_thread);
1409 cpupm_utilization_event(cp, now, dom,
1418 cmt_ev_thread_remain_pwr(pg_t *pg, cpu_t *cp, kthread_t *t)
1424 cpupm_utilization_event(cp, (hrtime_t)0, dom, CPUPM_DOM_REMAIN_BUSY);
1738 * This routine must be careful to operate only on "pgdata", and not cp->cpu_pg.
1745 cpu_t *cp;
1833 while ((cp = pg_cpu_next(&cpu_iter)) != NULL) {
1840 pg_cpu_find((pg_t *)pg_next, cp) == B_FALSE) {
1850 lgrp = lgrp_plat_cpu_to_hand(cp->cpu_id);
1851 } else if (lgrp_plat_cpu_to_hand(cp->cpu_id) != lgrp) {