drm/mm: Split up long running selftests with cond_resched()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Mar 2017 09:10:53 +0000 (10:10 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 May 2017 06:11:46 +0000 (08:11 +0200)
commitcd4b11d9d524ef457433d42c121e3405765d4a29
tree232914e6b7382acb1b1ff2c7f645aea630866203
parent6911498df901950d2b83ea707b3d00b1f6366fbc
drm/mm: Split up long running selftests with cond_resched()

Scatter a few cond_resched() in between phases of the drm_mm selftests
to try and prevent us incurring the wrath of the NMI watchdog.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170329091053.13837-1-chris@chris-wilson.co.uk
drivers/gpu/drm/selftests/test-drm_mm.c