]> www.infradead.org Git - users/jedix/linux-maple.git/commit
workqueue: Create low-level unbound workqueues cpumask
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 27 Apr 2015 09:58:39 +0000 (17:58 +0800)
committerBrian Maly <brian.maly@oracle.com>
Tue, 30 Oct 2018 17:03:14 +0000 (13:03 -0400)
commitf16ac54864563498c6b698a092726115e8fff2a1
tree8f539c30e7e10a5d88d89160ccecf0851654d1c3
parent3f8d8c799bd1007a9ba1c5bda88a05c14d96f5b1
workqueue: Create low-level unbound workqueues cpumask

Create a cpumask that limits the affinity of all unbound workqueues.
This cpumask is controlled through a file at the root of the workqueue
sysfs directory.

It works on a lower-level than the per WQ_SYSFS workqueues cpumask files
such that the effective cpumask applied for a given unbound workqueue is
the intersection of /sys/devices/virtual/workqueue/$WORKQUEUE/cpumask and
the new /sys/devices/virtual/workqueue/cpumask file.

This patch implements the basic infrastructure and the read interface.
wq_unbound_cpumask is initially set to cpu_possible_mask.

Cc: Christoph Lameter <cl@linux.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Mike Galbraith <bitbucket@online.de>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit b05a79280b346eb24ddb73b39988398015291075)

Orabug: 28813166

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
kernel/workqueue.c