• Home
  • Raw
  • Download

Lines Matching refs:cpumask

1886 		set_cpus_allowed_ptr(worker->task, pool->attrs->cpumask);  in worker_attach_to_pool()
1965 kthread_bind_mask(worker->task, pool->attrs->cpumask); in create_worker()
3387 free_cpumask_var(attrs->cpumask); in free_workqueue_attrs()
3407 if (!alloc_cpumask_var(&attrs->cpumask, GFP_KERNEL)) in alloc_workqueue_attrs()
3410 cpumask_copy(attrs->cpumask, cpu_possible_mask); in alloc_workqueue_attrs()
3421 cpumask_copy(to->cpumask, from->cpumask); in copy_workqueue_attrs()
3436 hash = jhash(cpumask_bits(attrs->cpumask), in wqattrs_hash()
3447 if (!cpumask_equal(a->cpumask, b->cpumask)) in wqattrs_equal()
3662 if (cpumask_subset(attrs->cpumask, in get_unbound_pool()
3890 int cpu_going_down, cpumask_t *cpumask) in wq_calc_node_cpumask() argument
3896 cpumask_and(cpumask, cpumask_of_node(node), attrs->cpumask); in wq_calc_node_cpumask()
3898 cpumask_clear_cpu(cpu_going_down, cpumask); in wq_calc_node_cpumask()
3900 if (cpumask_empty(cpumask)) in wq_calc_node_cpumask()
3904 cpumask_and(cpumask, attrs->cpumask, wq_numa_possible_cpumask[node]); in wq_calc_node_cpumask()
3906 if (cpumask_empty(cpumask)) { in wq_calc_node_cpumask()
3912 return !cpumask_equal(cpumask, attrs->cpumask); in wq_calc_node_cpumask()
3915 cpumask_copy(cpumask, attrs->cpumask); in wq_calc_node_cpumask()
3988 cpumask_and(new_attrs->cpumask, new_attrs->cpumask, unbound_cpumask); in apply_wqattrs_prepare()
3989 if (unlikely(cpumask_empty(new_attrs->cpumask))) in apply_wqattrs_prepare()
3990 cpumask_copy(new_attrs->cpumask, unbound_cpumask); in apply_wqattrs_prepare()
4009 if (wq_calc_node_cpumask(new_attrs, node, -1, tmp_attrs->cpumask)) { in apply_wqattrs_prepare()
4021 cpumask_and(new_attrs->cpumask, new_attrs->cpumask, cpu_possible_mask); in apply_wqattrs_prepare()
4159 cpumask_t *cpumask; in wq_update_unbound_numa() local
4173 cpumask = target_attrs->cpumask; in wq_update_unbound_numa()
4184 if (wq_calc_node_cpumask(wq->dfl_pwq->pool->attrs, node, cpu_off, cpumask)) { in wq_update_unbound_numa()
4185 if (cpumask_equal(cpumask, pwq->pool->attrs->cpumask)) in wq_update_unbound_numa()
4718 pr_cont(" cpus=%*pbl", nr_cpumask_bits, pool->attrs->cpumask); in pr_cont_pool_info()
5060 pool->attrs->cpumask) < 0); in rebind_workers()
5106 static cpumask_t cpumask; in restore_unbound_workers_cpumask() local
5112 if (!cpumask_test_cpu(cpu, pool->attrs->cpumask)) in restore_unbound_workers_cpumask()
5115 cpumask_and(&cpumask, pool->attrs->cpumask, cpu_online_mask); in restore_unbound_workers_cpumask()
5119 WARN_ON_ONCE(set_cpus_allowed_ptr(worker->task, &cpumask) < 0); in restore_unbound_workers_cpumask()
5409 int workqueue_set_unbound_cpumask(cpumask_var_t cpumask) in workqueue_set_unbound_cpumask() argument
5417 cpumask_and(cpumask, cpumask, cpu_possible_mask); in workqueue_set_unbound_cpumask()
5418 if (!cpumask_empty(cpumask)) { in workqueue_set_unbound_cpumask()
5420 if (cpumask_equal(cpumask, wq_unbound_cpumask)) { in workqueue_set_unbound_cpumask()
5425 ret = workqueue_apply_unbound_cpumask(cpumask); in workqueue_set_unbound_cpumask()
5584 cpumask_pr_args(wq->unbound_attrs->cpumask)); in wq_cpumask_show()
5603 ret = cpumask_parse(buf, attrs->cpumask); in wq_cpumask_store()
5655 __ATTR(cpumask, 0644, wq_cpumask_show, wq_cpumask_store),
5681 cpumask_var_t cpumask; in wq_unbound_cpumask_store() local
5684 if (!zalloc_cpumask_var(&cpumask, GFP_KERNEL)) in wq_unbound_cpumask_store()
5687 ret = cpumask_parse(buf, cpumask); in wq_unbound_cpumask_store()
5689 ret = workqueue_set_unbound_cpumask(cpumask); in wq_unbound_cpumask_store()
5691 free_cpumask_var(cpumask); in wq_unbound_cpumask_store()
5696 __ATTR(cpumask, 0644, wq_unbound_cpumask_show,
6030 cpumask_copy(pool->attrs->cpumask, cpumask_of(cpu)); in workqueue_init_early()