OSDN Git Service

drm/i915/selftests: cond_resched() within the longer buddy tests
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 29 Aug 2019 17:08:48 +0000 (18:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 29 Aug 2019 18:19:50 +0000 (19:19 +0100)
commite7b6affd0baef7b3c5e2acd94236093dcf437105
treef23688086bc87b0b5a7f3dc448a175b8778aef54
parent99d7a74110ef4c97f921b90fa8d897c6d71610a9
drm/i915/selftests: cond_resched() within the longer buddy tests

Let the scheduler have a breather in between passes of the longer buddy
tests. Important if we are running under kasan etc and this takes far
longer than usual!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190829170848.969-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_buddy.c