]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Reorder sysfs code
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 2 Apr 2015 11:14:39 +0000 (19:14 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 6 Apr 2015 15:16:04 +0000 (11:16 -0400)
commit3c58471ffcb5073e572f32e8331915dd337e7808
treedcdf2b22d8e5f9a515aa1d720aeae59a45d411c3
parent0de9b187498d116a06019d276cb5c01fd8bb0775
workqueue: Reorder sysfs code

The sysfs code usually belongs to the botom of the file since it deals
with high level objects. In the workqueue code it's misplaced and such
that we'll need to work around functions references to allow the sysfs
code to call APIs like apply_workqueue_attrs().

Lets move that block further in the file, almost the botom.

And declare workqueue_sysfs_unregister() just before destroy_workqueue()
which reference it.

tj: Moved workqueue_sysfs_unregister() forward declaration where other
    forward declarations are.

Suggested-by: Tejun Heo <tj@kernel.org>
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>
kernel/workqueue.c