summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-03-12 11:30:00 -0700
committerTejun Heo <tj@kernel.org>2013-03-12 11:30:00 -0700
commit7a4e344c5675eefbde93ed9a98ef45e0e4957bc2 (patch)
tree7a4383063512328184db9d20e27164824c44dc2c /samples
parent4e1a1f9a051b4c9a2821a2a0f7f4a27c701fba51 (diff)
downloadop-kernel-dev-7a4e344c5675eefbde93ed9a98ef45e0e4957bc2.zip
op-kernel-dev-7a4e344c5675eefbde93ed9a98ef45e0e4957bc2.tar.gz
workqueue: introduce workqueue_attrs
Introduce struct workqueue_attrs which carries worker attributes - currently the nice level and allowed cpumask along with helper routines alloc_workqueue_attrs() and free_workqueue_attrs(). Each worker_pool now carries ->attrs describing the attributes of its workers. All functions dealing with cpumask and nice level of workers are updated to follow worker_pool->attrs instead of determining them from other characteristics of the worker_pool, and init_workqueues() is updated to set worker_pool->attrs appropriately for all standard pools. Note that create_worker() is updated to always perform set_user_nice() and use set_cpus_allowed_ptr() combined with manual assertion of PF_THREAD_BOUND instead of kthread_bind(). This simplifies handling random attributes without affecting the outcome. This patch doesn't introduce any behavior changes. v2: Missing cpumask_var_t definition caused build failure on some archs. linux/cpumask.h included. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: kbuild test robot <fengguang.wu@intel.com> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud