Lines Matching refs:nthreads
710 int nthreads; in lgrp_affinity_set() local
832 nthreads = p->p_lwpcnt; in lgrp_affinity_set()
837 if (nthreads < 1) in lgrp_affinity_set()
846 aff_buf_array = kmem_zalloc(nthreads * in lgrp_affinity_set()
850 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
869 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
872 nthreads * sizeof (lgrp_affinity_t *)); in lgrp_affinity_set()
882 if (nthreads != p->p_lwpcnt) { in lgrp_affinity_set()
885 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
888 nthreads * sizeof (lgrp_affinity_t *)); in lgrp_affinity_set()
906 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
910 nthreads * sizeof (lgrp_affinity_t *)); in lgrp_affinity_set()
914 } while (nthreads != p->p_lwpcnt); in lgrp_affinity_set()