diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-02-24 14:02:29 -0800 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-02-28 08:45:36 -0800 |
commit | c90e2633f9acfce3e03a5aa49ca71c2d574a72f9 (patch) | |
tree | 26252edfa693ce1467b58cdcf4334a52c186f75c /lib/igt_dummyload.c | |
parent | 57049558c452272b27eeb099fac07e55a924bbf9 (diff) |
lib/igt_dummyload: Drop ahnd from igt_spin_t
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 <zbigniew.kempczynski@intel.com>
Cc: Jasmine Newsome <jasmine.newsome@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Zbigniew KempczyĆski <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r-- | lib/igt_dummyload.c | 9 |
1 files changed, 4 insertions, 5 deletions
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) |