diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-11 17:06:28 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-12 11:37:21 +0200 |
commit | d7050f9f79fee8fb7c790f355c984d9e5141e1c5 (patch) | |
tree | ea1ff5b7b729b0fc22f29ee5af8df8860ae6c7e8 /tests/gem_ringfill.c | |
parent | 701d8fdb363443453c4b613e9180f75ad36a7321 (diff) |
lib/igt_aux: Polish docs for igt_interruptible
- Give __ prefix to internal funcstion and structs, only
igt_interruptible is used by tests.
- Move docs to igt_interruptible and adjust.
- Explain more clearly how the timeout is getting doubled each
iteration until no more interruptions happen. Also rename the
argument to give it a more meaningful name in the docs.
- Link from other functions to this one for cross-referencing.
- Rename to igt_do_interruptible to make it clearer it's a loop,
inspired by do {} while () loops.
v2: Rename instead to igt_while_interruptible and fix typos (Chris).
And add gtk-doc for igt_ioctl, too.
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/gem_ringfill.c')
-rw-r--r-- | tests/gem_ringfill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c index 52192d9b..e503913d 100644 --- a/tests/gem_ringfill.c +++ b/tests/gem_ringfill.c @@ -75,7 +75,7 @@ static void fill_ring(int fd, * doing this, we aren't likely to with this test. */ igt_debug("Executing execbuf %d times\n", 128*1024/(8*4)); - igt_interruptible(flags & INTERRUPTIBLE) { + igt_while_interruptible(flags & INTERRUPTIBLE) { for (int i = 0; i < 128*1024 / (8 * 4); i++) gem_execbuf(fd, execbuf); } |