Re: [PATCH 3/4] workqueue: Allow modifying low level unbound workqueue cpumask

2014-05-01 Thread Frederic Weisbecker
On Thu, Apr 24, 2014 at 11:30:48AM -0400, Tejun Heo wrote: > On Thu, Apr 24, 2014 at 04:37:35PM +0200, Frederic Weisbecker wrote: > > +static int apply_workqueue_attrs_locked(struct workqueue_struct *wq, > > + const struct workqueue_attrs *attrs); > > Can't we reo

Re: [PATCH 3/4] workqueue: Allow modifying low level unbound workqueue cpumask

2014-04-24 Thread Tejun Heo
On Thu, Apr 24, 2014 at 04:37:35PM +0200, Frederic Weisbecker wrote: > +static int apply_workqueue_attrs_locked(struct workqueue_struct *wq, > + const struct workqueue_attrs *attrs); Can't we reorder things so that we don't need the above prototype? > +/* Must

[PATCH 3/4] workqueue: Allow modifying low level unbound workqueue cpumask

2014-04-24 Thread Frederic Weisbecker
Allow to modify the low-level unbound workqueues cpumask through sysfs. This is performed by traversing the entire workqueue list and calling apply_workqueue_attrs() on the unbound workqueues. Ordered workqueues need some specific treatment and will be dealt with in a subsequent patch. Cc: Christ