Lines Matching refs:cur
699 sysdc_pset_t *cur;
716 for (cur = list_head(&sysdc_psets); cur != NULL;
717 cur = list_next(&sysdc_psets, cur)) {
718 boolean_t breaking = (cur->sdp_should_break != 0);
720 if (cur->sdp_need_break != breaking) {
721 DTRACE_PROBE2(sdc__pset__break, sysdc_pset_t *, cur,
724 cur->sdp_onproc_time = 0;
725 cur->sdp_onproc_threads = 0;
726 cur->sdp_need_break = breaking;
812 for (cur = list_head(&sysdc_psets); cur != NULL;
813 cur = list_next(&sysdc_psets, cur)) {
815 cur->sdp_vtime_last_interval =
816 diff * cur->sdp_cpupart->cp_ncpus;
817 cur->sdp_DC_last_interval =
818 (cur->sdp_onproc_time * SYSDC_DC_MAX) /
819 cur->sdp_vtime_last_interval;
821 if (cur->sdp_should_break > 0) {
822 cur->sdp_should_break--; /* breaking */
825 if (cur->sdp_dont_break > 0) {
826 cur->sdp_dont_break--; /* waiting before checking */
829 if (cur->sdp_DC_last_interval > sysdc_max_pset_DC) {
830 cur->sdp_should_break = sysdc_break_updates;
831 cur->sdp_dont_break = sysdc_nobreak_updates;
853 sysdc_t *cur = freelist;
854 freelist = cur->sdc_next;
855 kmem_free(cur, sizeof (*cur));