drm/i915: Streamline VLV forcewake handling
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 27 Feb 2014 20:07:21 +0000 (22:07 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Mar 2014 20:30:22 +0000 (21:30 +0100)
commit6fe7286530d9b9ce13421e3628bf564e896662a6
tree034d4f46f5d68cf36496508e3ac0d994539b1c09
parentfc9d83f7475ec3164ee80582555f4fe8a7847319
drm/i915: Streamline VLV forcewake handling

It occured to me that when we're trying to wake up both render
and media wells on VLV, we might end up calling the low level
force_wake_get/put two times even though one call would be
enough. Make that happen by figuring out which wells really
need to be woken up based on the forcewake counts.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by:Deepak S <deepak.s@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c