]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: don't update GEN6_PMIMR when it's not needed
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 6 Aug 2013 21:57:14 +0000 (18:57 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Aug 2013 15:08:16 +0000 (17:08 +0200)
commit80998ddec1606fc8e57decca9ae49bf061044d07
tree19b718984c3f0c416dd4019e8c6e6e30781fc193
parentbfe602874ce91900b0d84eda1373311c8bb1c53c
drm/i915: don't update GEN6_PMIMR when it's not needed

I did some brief tests and the "new_val = pmimr" condition usually
happens a few times after exiting games.

Note: This is also prep work to track the GEN6_PMIMR register state in
dev_priv->pm_imr. This happens in the next patch.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
[danvet: Add note to explain why we want this, as per the discussion
between Chris and Paulo.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c