Searched refs:lim (Results 1 – 2 of 2) sorted by relevance
229 int lim; in cblist_init_generic() local239 lim = rcu_task_enqueue_lim; in cblist_init_generic()241 if (lim > nr_cpu_ids) in cblist_init_generic()242 lim = nr_cpu_ids; in cblist_init_generic()243 shift = ilog2(nr_cpu_ids / lim); in cblist_init_generic()244 if (((nr_cpu_ids - 1) >> shift) >= lim) in cblist_init_generic()247 WRITE_ONCE(rtp->percpu_dequeue_lim, lim); in cblist_init_generic()248 smp_store_release(&rtp->percpu_enqueue_lim, lim); in cblist_init_generic()
4258 int lim = flags & WQ_UNBOUND ? WQ_UNBOUND_MAX_ACTIVE : WQ_MAX_ACTIVE; in wq_clamp_max_active() local4260 if (max_active < 1 || max_active > lim) in wq_clamp_max_active()4262 max_active, name, 1, lim); in wq_clamp_max_active()4264 return clamp_val(max_active, 1, lim); in wq_clamp_max_active()