From: Chris Wilson Date: Tue, 20 Apr 2010 16:10:35 +0000 (+0100) Subject: drm/i915: Wait for the GPU whilst shrinking, if truly desperate. X-Git-Tag: v2.6.35-rc1~451^2~12^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1637ef413b9a5d1c14eb370f7029a5558f3bb3d3;p=pandora-kernel.git drm/i915: Wait for the GPU whilst shrinking, if truly desperate. By idling the GPU and discarding everything we can when under extreme memory pressure, the number of OOM-killer events is dramatically reduced. For instance, this makes it possible to run firefox-planet-gnome.trace again on my swapless 512MiB i915. Signed-off-by: Chris Wilson Signed-off-by: Eric Anholt --- Reading git-diff-tree failed