summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-01-03 18:09:06 +0000
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-01-04 13:40:01 +0200
commit10ad981c6f912dc8cd10035fb50d939956b45b1c (patch)
tree9c83719f6b1cdd18f03837639d92020e14523cc5
parent52bc6baebec178cf1447090000befd6263fa39b3 (diff)
igt/gem_busy: Remove repeated use of igt_spin_batch_new
igt_spin_batch_new() includes a throttling check that GEM works, which breaks trying to create multiple spin batches, use __igt_spin_batch_new() instead, after verifying GEM works. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
-rw-r--r--tests/gem_busy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index 4ba23241..c349c291 100644
--- a/tests/gem_busy.c
+++ b/tests/gem_busy.c
@@ -459,17 +459,17 @@ static void close_race(int fd)
igt_assert(sched_setscheduler(getpid(), SCHED_RR, &rt) == 0);
for (i = 0; i < nhandles; i++) {
- spin[i] = igt_spin_batch_new(fd, 0,
- engines[rand() % nengine], 0);
+ spin[i] = __igt_spin_batch_new(fd, 0,
+ engines[rand() % nengine], 0);
handles[i] = spin[i]->handle;
}
igt_until_timeout(20) {
for (i = 0; i < nhandles; i++) {
igt_spin_batch_free(fd, spin[i]);
- spin[i] = igt_spin_batch_new(fd, 0,
- engines[rand() % nengine],
- 0);
+ spin[i] = __igt_spin_batch_new(fd, 0,
+ engines[rand() % nengine],
+ 0);
handles[i] = spin[i]->handle;
__sync_synchronize();
}