]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita259583bd8f8536619570a3c2c5e655d195dcf04
tree49f3469942ca7f2c801e42cabddc3d6bd4c60767
parentd00e8794c89eef927acc994eb7cacbe8efa5aed6
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