| From e45a72a6784120b42294fd8a65a30c2915333172 Mon Sep 17 00:00:00 2001 |
| From: Chris Wilson <chris@chris-wilson.co.uk> |
| Date: Fri, 4 Oct 2013 09:58:46 +0100 |
| Subject: drm/i915: Call io_schedule() whilst whilsting for the GPU |
| |
| Since we are waiting upon IO completion, inform the kernel through use |
| of the io_schedule() call rather than the regular schedule(). This |
| should allow the kernel to make better decisions regarding scheduling |
| and power management. |
| |
| Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> |
| Cc: Daniel Vetter <daniel.vetter@ffwll.ch> |
| Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> |
| (cherry picked from commit 5035c275af811b93dec5df6d064e0b2319cf59c8) |
| Signed-off-by: Darren Hart <dvhart@linux.intel.com> |
| --- |
| drivers/gpu/drm/i915/i915_gem.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c |
| index 052280840f99..45571dac0a64 100644 |
| --- a/drivers/gpu/drm/i915/i915_gem.c |
| +++ b/drivers/gpu/drm/i915/i915_gem.c |
| @@ -1080,7 +1080,7 @@ static int __wait_seqno(struct intel_ring_buffer *ring, u32 seqno, |
| mod_timer(&timer, expire); |
| } |
| |
| - schedule(); |
| + io_schedule(); |
| |
| if (timeout) |
| timeout_jiffies = expire - jiffies; |
| -- |
| 1.8.5.rc3 |
| |