drm/i915: fixup desired rps frequency computation
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Aug 2012 15:42:52 +0000 (17:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Aug 2012 20:54:06 +0000 (22:54 +0200)
commit65bccb5c708bd9f00d24f041f4f7c45130359448
treee300366449060608476d98f65772a2cb4f91b168
parent2fedbff948cf5bc1e9977b7bc885aae45bd32f74
drm/i915: fixup desired rps frequency computation

In commit

commit 20b46e59dd102665ce7168baa215e5b1ee66b69b
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jul 26 11:16:14 2012 +0200

    drm/i915: Only set the down rps limit when at the loweset frequency

The computation for the new desired frequency was extracted, but since
the desired frequency was passed-by value, the adjustments didn't
propgate back. Fix this.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c