1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-20 04:04:36 +00:00

drm/ttm/tests: Fix build failure on PREEMPT_RT

From Maarten Lankhorst
be0c2255d717c8c548cba3b78c6d3c33ecd1feb8 in linux-6.18.y/6.18.21
a58d487fb1a52579d3c37544ea371da78ed70c45 in mainline linux
This commit is contained in:
jsg
2026-04-07 09:27:59 +00:00
parent 321c78384e
commit 82bd097ce6

View File

@@ -222,13 +222,13 @@ static void ttm_bo_reserve_interrupted(struct kunit *test)
KUNIT_FAIL(test, "Couldn't create ttm bo reserve task\n");
/* Take a lock so the threaded reserve has to wait */
mutex_lock(&bo->base.resv->lock.base);
dma_resv_lock(bo->base.resv, NULL);
wake_up_process(task);
msleep(20);
err = kthread_stop(task);
mutex_unlock(&bo->base.resv->lock.base);
dma_resv_unlock(bo->base.resv);
KUNIT_ASSERT_EQ(test, err, -ERESTARTSYS);
}