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)
commit6ba94429c8e7b87b0fff13c5ac90731b239b77fa
treedcdf2b22d8e5f9a515aa1d720aeae59a45d411c3
parentbffc4375897ea01aa68877e5fc1e33c7766efa29
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