From a765aa108105804c19096554447ad0cb71f64fc3 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 17 Apr 2019 18:28:33 +0300 Subject: 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 Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson --- lib/igt_gt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/igt_gt.c') 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); -- cgit v1.2.3