diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2019-04-17 18:28:33 +0300 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2019-04-18 17:04:09 +0300 |
commit | a765aa108105804c19096554447ad0cb71f64fc3 (patch) | |
tree | 5570cc9b5c6a733268d56a3a96939873d254e61b /lib/igt_gt.c | |
parent | 226b9995d1fb486d34cd35428025b55532e9e3d1 (diff) |
lib/igt_dummyload: Get rid of 'batch' on spinner accessors
There is no guarantee that spinners are and will be implemented
using batches. As we have igt_spin_t, manipulate it through
igt_spin_* functions consistently and hide the batch nature.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_gt.c')
-rw-r--r-- | lib/igt_gt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 59995243..a2eaadf5 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -294,10 +294,10 @@ igt_hang_t igt_hang_ctx(int fd, uint32_t ctx, int ring, unsigned flags) if ((flags & HANG_ALLOW_BAN) == 0) context_set_ban(fd, ctx, 0); - spin = __igt_spin_batch_new(fd, - .ctx = ctx, - .engine = ring, - .flags = IGT_SPIN_NO_PREEMPTION); + spin = __igt_spin_new(fd, + .ctx = ctx, + .engine = ring, + .flags = IGT_SPIN_NO_PREEMPTION); return (igt_hang_t){ spin, ctx, ban, flags }; } @@ -333,7 +333,7 @@ void igt_post_hang_ring(int fd, igt_hang_t arg) return; gem_sync(fd, arg.spin->handle); /* Wait until it hangs */ - igt_spin_batch_free(fd, arg.spin); + igt_spin_free(fd, arg.spin); context_set_ban(fd, arg.ctx, arg.ban); |