Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329269
b: refs/heads/master
c: 65bccb5
h: refs/heads/master
i:
  329267: a55ed9e
v: v3
  • Loading branch information
Daniel Vetter committed Aug 8, 2012
1 parent 80f332d commit 5a52d87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fedbff948cf5bc1e9977b7bc885aae45bd32f74
refs/heads/master: 65bccb5c708bd9f00d24f041f4f7c45130359448
12 changes: 6 additions & 6 deletions trunk/drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,13 +2272,13 @@ static void ironlake_disable_drps(struct drm_device *dev)
* ourselves, instead of doing a rmw cycle (which might result in us clearing
* all limits and the gpu stuck at whatever frequency it is at atm).
*/
static u32 gen6_rps_limits(struct drm_i915_private *dev_priv, u8 val)
static u32 gen6_rps_limits(struct drm_i915_private *dev_priv, u8 *val)
{
u32 limits;

limits = 0;
if (val >= dev_priv->max_delay)
val = dev_priv->max_delay;
if (*val >= dev_priv->max_delay)
*val = dev_priv->max_delay;
limits |= dev_priv->max_delay << 24;

/* Only set the down limit when we've reached the lowest level to avoid
Expand All @@ -2287,8 +2287,8 @@ static u32 gen6_rps_limits(struct drm_i915_private *dev_priv, u8 val)
* the hw runs at the minimal clock before selecting the desired
* frequency, if the down threshold expires in that window we will not
* receive a down interrupt. */
if (val <= dev_priv->min_delay) {
val = dev_priv->min_delay;
if (*val <= dev_priv->min_delay) {
*val = dev_priv->min_delay;
limits |= dev_priv->min_delay << 16;
}

Expand All @@ -2298,7 +2298,7 @@ static u32 gen6_rps_limits(struct drm_i915_private *dev_priv, u8 val)
void gen6_set_rps(struct drm_device *dev, u8 val)
{
struct drm_i915_private *dev_priv = dev->dev_private;
u32 limits = gen6_rps_limits(dev_priv, val);
u32 limits = gen6_rps_limits(dev_priv, &val);

if (val == dev_priv->cur_delay)
return;
Expand Down

0 comments on commit 5a52d87

Please sign in to comment.