• Frederic Weisbecker's avatar
    workqueue: Reorder sysfs code · 6ba94429
    Frederic Weisbecker authored
    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: default avatarTejun 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: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
workqueue.c 142 KB