Commit 7cf50fc8 authored by Eugeni Dodonov's avatar Eugeni Dodonov Committed by Daniel Vetter

drm/i915: slightly improve gt enable/disable routines

Just a cosmetic change to simplify the if statement.
Signed-off-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 5a7dc92a
...@@ -3240,7 +3240,7 @@ void intel_disable_gt_powersave(struct drm_device *dev) ...@@ -3240,7 +3240,7 @@ void intel_disable_gt_powersave(struct drm_device *dev)
{ {
if (IS_IRONLAKE_M(dev)) if (IS_IRONLAKE_M(dev))
ironlake_disable_drps(dev); ironlake_disable_drps(dev);
if (INTEL_INFO(dev)->gen >= 6 && !IS_VALLEYVIEW(dev)) else if (INTEL_INFO(dev)->gen >= 6 && !IS_VALLEYVIEW(dev))
gen6_disable_rps(dev); gen6_disable_rps(dev);
} }
...@@ -3250,9 +3250,7 @@ void intel_enable_gt_powersave(struct drm_device *dev) ...@@ -3250,9 +3250,7 @@ void intel_enable_gt_powersave(struct drm_device *dev)
ironlake_enable_drps(dev); ironlake_enable_drps(dev);
ironlake_enable_rc6(dev); ironlake_enable_rc6(dev);
intel_init_emon(dev); intel_init_emon(dev);
} } else if ((IS_GEN6(dev) || IS_GEN7(dev)) && !IS_VALLEYVIEW(dev)) {
if ((IS_GEN6(dev) || IS_GEN7(dev)) && !IS_VALLEYVIEW(dev)) {
gen6_enable_rps(dev); gen6_enable_rps(dev);
gen6_update_ring_freq(dev); gen6_update_ring_freq(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment