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/igt_dummyload.h | |
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/igt_dummyload.h')
-rw-r--r-- | lib/igt_dummyload.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h index 3793bf7f..d6482089 100644 --- a/lib/igt_dummyload.h +++ b/lib/igt_dummyload.h @@ -58,18 +58,18 @@ struct igt_spin_factory { #define IGT_SPIN_NO_PREEMPTION (1 << 3) igt_spin_t * -__igt_spin_batch_factory(int fd, const struct igt_spin_factory *opts); +__igt_spin_factory(int fd, const struct igt_spin_factory *opts); igt_spin_t * -igt_spin_batch_factory(int fd, const struct igt_spin_factory *opts); +igt_spin_factory(int fd, const struct igt_spin_factory *opts); -#define __igt_spin_batch_new(fd, ...) \ - __igt_spin_batch_factory(fd, &((struct igt_spin_factory){__VA_ARGS__})) -#define igt_spin_batch_new(fd, ...) \ - igt_spin_batch_factory(fd, &((struct igt_spin_factory){__VA_ARGS__})) +#define __igt_spin_new(fd, ...) \ + __igt_spin_factory(fd, &((struct igt_spin_factory){__VA_ARGS__})) +#define igt_spin_new(fd, ...) \ + igt_spin_factory(fd, &((struct igt_spin_factory){__VA_ARGS__})) -void igt_spin_batch_set_timeout(igt_spin_t *spin, int64_t ns); -void igt_spin_batch_end(igt_spin_t *spin); -void igt_spin_batch_free(int fd, igt_spin_t *spin); +void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns); +void igt_spin_end(igt_spin_t *spin); +void igt_spin_free(int fd, igt_spin_t *spin); static inline bool igt_spin_has_poll(const igt_spin_t *spin) { @@ -87,7 +87,7 @@ static inline void igt_spin_busywait_until_started(igt_spin_t *spin) ; } -void igt_terminate_spin_batches(void); +void igt_terminate_spins(void); enum igt_cork_type { CORK_SYNC_FD = 1, |