drm/i915: Don't update the render-clock for every bo.
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Nov 2009 01:08:56 +0000 (01:08 +0000)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 17:42:16 +0000 (09:42 -0800)
commit28cf798f5a9bd894ee90b27667b0d36b4933ae23
treebb294f5f20cfc3d55ed08e93d718e9897d037cfd
parent38b3037ee47fbd65a36bc7c39f60a900fbbe3b8e
drm/i915: Don't update the render-clock for every bo.

Only update the render-clock on transition from busy to idle and vice
versa, or else we burn a significant percentage of the cpu just rewriting
the register -- not quite as power-friendly as intended ;-)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c