summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_sysfs.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2014-03-20 05:31:09 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-20 17:45:16 +0400
commit5a953add43ea62e862ba15b7f969cd838e456949 (patch)
tree4ee68b0436967fcf85de9bddfdafff65690efc4a /drivers/gpu/drm/i915/i915_sysfs.c
parentd060c1695345df6c82b5253acb7055698b2bf002 (diff)
downloadlinux-5a953add43ea62e862ba15b7f969cd838e456949.tar.xz
drm/i915: Fix coding style for RPS
Introduced: commit b8a5ff8d7c676a04e0da5ec16bb068dd39459042 Author: Jeff McGee <jeff.mcgee@intel.com> Date: Tue Feb 4 11:37:01 2014 -0600 drm/i915: Update rps interrupt limits Cc: Jeff McGee <jeff.mcgee@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_sysfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_sysfs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
index 0c741f4eefb0..e9ffefb720de 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -356,12 +356,12 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev,
valleyview_set_rps(dev, val);
else
gen6_set_rps(dev, val);
- }
- else if (!IS_VALLEYVIEW(dev))
- /* We still need gen6_set_rps to process the new max_delay
- and update the interrupt limits even though frequency
- request is unchanged. */
+ } else if (!IS_VALLEYVIEW(dev)) {
+ /* We still need gen6_set_rps to process the new max_delay and
+ * update the interrupt limits even though frequency request is
+ * unchanged. */
gen6_set_rps(dev, dev_priv->rps.cur_delay);
+ }
mutex_unlock(&dev_priv->rps.hw_lock);
@@ -430,12 +430,12 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev,
valleyview_set_rps(dev, val);
else
gen6_set_rps(dev, val);
- }
- else if (!IS_VALLEYVIEW(dev))
- /* We still need gen6_set_rps to process the new min_delay
- and update the interrupt limits even though frequency
- request is unchanged. */
+ } else if (!IS_VALLEYVIEW(dev)) {
+ /* We still need gen6_set_rps to process the new min_delay and
+ * update the interrupt limits even though frequency request is
+ * unchanged. */
gen6_set_rps(dev, dev_priv->rps.cur_delay);
+ }
mutex_unlock(&dev_priv->rps.hw_lock);