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/prime_mmap_coherency.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/prime_mmap_coherency.c')
-rw-r--r-- | tests/prime_mmap_coherency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c index 5cacdc5d8..fb67ef1f0 100644 --- a/tests/prime_mmap_coherency.c +++ b/tests/prime_mmap_coherency.c @@ -277,7 +277,7 @@ static void test_ioctl_errors(void) } igt_fork(child, num_children) - igt_interruptible(true) blit_and_cmp(); + igt_while_interruptible(true) blit_and_cmp(); igt_waitchildren(); } } |