]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i915: Don't run retire work handler while suspended
authorKeith Packard <keithp@keithp.com>
Wed, 15 Oct 2008 04:41:13 +0000 (21:41 -0700)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:53 +0000 (07:10 +1000)
commit6dbe2772d6af067845bab57be490c302f4490ac7
tree5d84600a5ff20a5c5390c02df2400b626ac9b140
parentba1eb1d825fdef40f69871caf8e5842d00efbbc5
i915: Don't run retire work handler while suspended

At leavevt and lastclose time, cancel any pending retire work handler
invocation, and keep the retire work handler from requeuing itself if it is
currently running.

This patch restructures i915_gem_idle to perform all of these tasks instead
of having both leavevt and lastclose call a sequence of functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c