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/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index d31ade3f..4a92fb5c 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -176,7 +176,7 @@ static const char *forced_driver(void) */ void gem_quiescent_gpu(int fd) { - igt_terminate_spin_batches(); + igt_terminate_spins(); igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE | DROP_IDLE | DROP_FREED); @@ -314,7 +314,7 @@ static int at_exit_drm_render_fd = -1; static void __cancel_work_at_exit(int fd) { - igt_terminate_spin_batches(); /* for older kernels */ + igt_terminate_spins(); /* for older kernels */ igt_sysfs_set_parameter(fd, "reset", "%x", -1u /* any method */); igt_drop_caches_set(fd, -- cgit v1.2.3