From c90e2633f9acfce3e03a5aa49ca71c2d574a72f9 Mon Sep 17 00:00:00 2001 From: Ashutosh Dixit Date: Thu, 24 Feb 2022 14:02:29 -0800 Subject: lib/igt_dummyload: Drop ahnd from igt_spin_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In 4d9396e67930 we have started storing the opts with which the spin was created as part of igt_spin_t. The ahnd stored as part of igt_spin_t is therefore redundant. We can get ahnd from opts.ahnd. Cc: Zbigniew Kempczynski Cc: Jasmine Newsome Signed-off-by: Ashutosh Dixit Reviewed-by: Zbigniew KempczyƄski --- lib/igt_dummyload.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/igt_dummyload.c') diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index 0b2be154d..dc1bd51e0 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -128,7 +128,6 @@ emit_recursive_batch(igt_spin_t *spin, addr += random() % addr / 2; addr &= -4096; } else { - spin->ahnd = ahnd; objflags |= EXEC_OBJECT_PINNED; } @@ -612,14 +611,14 @@ static void __igt_spin_free(int fd, igt_spin_t *spin) if (spin->poll_handle) { gem_close(fd, spin->poll_handle); - if (spin->ahnd) - intel_allocator_free(spin->ahnd, spin->poll_handle); + if (spin->opts.ahnd) + intel_allocator_free(spin->opts.ahnd, spin->poll_handle); } if (spin->handle) { gem_close(fd, spin->handle); - if (spin->ahnd) - intel_allocator_free(spin->ahnd, spin->handle); + if (spin->opts.ahnd) + intel_allocator_free(spin->opts.ahnd, spin->handle); } if (spin->out_fence >= 0) -- cgit v1.2.3