[Intel-gfx] [RFC] drm/i915: downclock support
Keith Packard
keithp at keithp.com
Mon Jul 27 19:27:06 CEST 2009
On Mon, 2009-07-27 at 17:55 +0100, Matthew Garrett wrote:
> static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
> {
> struct drm_device *dev = crtc->dev;
> @@ -2557,6 +2661,12 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
> uint32_t temp = 0;
> uint32_t adder;
>
> + if (!intel_crtc->busy)
> + intel_increase_pllclock(crtc, true);
> + intel_crtc->busy = true;
> + mod_timer(&intel_crtc->idle_timer, jiffies +
> + msecs_to_jiffies(CRTC_IDLE_TIMEOUT));
> +
> if (x < 0) {
> temp |= CURSOR_POS_SIGN << CURSOR_X_SHIFT;
> x = -x;
> +void intel_mark_busy(struct drm_device *dev, struct drm_gem_object *obj)
> + if (intel_fb->obj == obj) {
> + if (!intel_crtc->busy)
> + intel_increase_pllclock(crtc, true);
> + intel_crtc->busy = true;
> + mod_timer(&intel_crtc->idle_timer, jiffies +
> + msecs_to_jiffies(CRTC_IDLE_TIMEOUT));
> + }
Merge these two pieces of identical code?
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090727/71d2cccb/attachment.sig>
More information about the Intel-gfx
mailing list