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/drmtest.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/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |