]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Break up long runs of freeing objects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 10:25:51 +0000 (11:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 12:37:41 +0000 (13:37 +0100)
commit007c51c9224674a81b276bebe444db1faca849ba
tree82eddb09aba8346d0603a7f50c060b3231968296
parenteada7a3b5fa9a3a9145c9320eaf68444f05ec29b
drm/i915: Break up long runs of freeing objects

Before freeing the next batch of objects from the worker, check if the
worker's timeslice has expired and if so, defer the next batch to the
next invocation of the worker.

Suggested-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407102552.5781-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c