drm/i915: split power well 'set' handler to separate enable/disable/sync_hw
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:22:55 +0000 (19:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:49 +0000 (22:36 +0100)
commitc6cb582e6cf7b2e7ecb9668f53bd4fe6295bee82
treefa18ad2196b8b60287049bf11fce213496d26ca8
parentf5938f363535b1723f81bd5debcb7ce5161ece95
drm/i915: split power well 'set' handler to separate enable/disable/sync_hw

Split the 'set' power well handler into an 'enable', 'disable' and
'sync_hw' handler. This maps more conveniently to higher level
operations, for example it allows us to push the hsw package c8 handling
into the corresponding hsw/bdw enable/disable handlers and the hsw BIOS
hand-over setting into the hsw/bdw sync_hw handler.

No functional change.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Appease checkpatch's whitespace complaints.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c