drm/i915: Move allocation of various workqueues earlier during init
authorImre Deak <imre.deak@intel.com>
Tue, 19 Jan 2016 13:26:30 +0000 (15:26 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 27 Jan 2016 15:43:15 +0000 (17:43 +0200)
commit399bb5b6db027b1834d10496909d60214779126c
tree49f3469942ca7f2c801e42cabddc3d6bd4c60767
parentd64aa096a4fb0f438563ad8126123766c2190aa8
drm/i915: Move allocation of various workqueues earlier during init

Workqueue initalization doesn't depend on any other device specific
resource, so move it close to the beginning, so we don't need to
consider them when thinking about dependencies for other resources.

Also factor out things to separate init/cleanup functions to make
i915_driver_load()/unload() clearer, atm it's somewhat difficult to
follow there in what order resources are inited/cleaned-up.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453209992-25995-6-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c