diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-07-10 16:45:26 -0700 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-13 19:29:38 +0100 |
commit | 140a67c13aad2595ee6c72e41d14d35a793158b5 (patch) | |
tree | 1b33508f86195317e338c91b7aa45f4cf51ad223 /tests/gem_exec_schedule.c | |
parent | caea9c5b3aa1191c0152d7c0f22a94efca4fd048 (diff) |
lib/gt: Make use of dummyload library to create recursive batch
An hanging batch is nothing more than a spinning batch that never gets
stopped, so re-use the routines implemented in dummyload.c.
v2: Let caller decide spin loop size
v3: Only use loose loops for hangs (Chris)
v4: No requires
v5: Free the spinner
v6: Chamelium exists.
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> #v3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests/gem_exec_schedule.c')
-rw-r--r-- | tests/gem_exec_schedule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_schedule.c b/tests/gem_exec_schedule.c index 35a44ab1..43ea97e6 100644 --- a/tests/gem_exec_schedule.c +++ b/tests/gem_exec_schedule.c @@ -423,7 +423,7 @@ static void preempt(int fd, unsigned ring, unsigned flags) gem_context_set_priority(fd, ctx[HI], MAX_PRIO); if (flags & HANG_LP) - hang = igt_hang_ctx(fd, ctx[LO], ring, 0, NULL); + hang = igt_hang_ctx(fd, ctx[LO], ring, 0); for (int n = 0; n < ARRAY_SIZE(spin); n++) { if (flags & NEW_CTX) { @@ -730,7 +730,7 @@ static void preemptive_hang(int fd, unsigned ring) gem_context_destroy(fd, ctx[LO]); } - hang = igt_hang_ctx(fd, ctx[HI], ring, 0, NULL); + hang = igt_hang_ctx(fd, ctx[HI], ring, 0); igt_post_hang_ring(fd, hang); for (int n = 0; n < ARRAY_SIZE(spin); n++) { |