Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200750
b: refs/heads/master
c: 45ac22c
h: refs/heads/master
v: v3
  • Loading branch information
Li Peng authored and Eric Anholt committed Jun 15, 2010
1 parent 638c524 commit 36d2e73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: c496fa1fff0248ef8cd637efb52b70dea7afaa9d
refs/heads/master: 45ac22c81b1088f5ac08dc5367f78c192d68d756
12 changes: 7 additions & 5 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -4483,6 +4483,7 @@ static void intel_idle_update(struct work_struct *work)
struct drm_device *dev = dev_priv->dev;
struct drm_crtc *crtc;
struct intel_crtc *intel_crtc;
int enabled = 0;

if (!i915_powersave)
return;
Expand All @@ -4491,21 +4492,22 @@ static void intel_idle_update(struct work_struct *work)

i915_update_gfx_val(dev_priv);

if (IS_I945G(dev) || IS_I945GM(dev)) {
DRM_DEBUG_DRIVER("enable memory self refresh on 945\n");
I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN_MASK | FW_BLC_SELF_EN);
}

list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
/* Skip inactive CRTCs */
if (!crtc->fb)
continue;

enabled++;
intel_crtc = to_intel_crtc(crtc);
if (!intel_crtc->busy)
intel_decrease_pllclock(crtc);
}

if ((enabled == 1) && (IS_I945G(dev) || IS_I945GM(dev))) {
DRM_DEBUG_DRIVER("enable memory self refresh on 945\n");
I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN_MASK | FW_BLC_SELF_EN);
}

mutex_unlock(&dev->struct_mutex);
}

Expand Down

0 comments on commit 36d2e73

Please sign in to comment.