igt_core: Refactor igt_stop_helper() to use igt_wait_helper()

Reduce code duplication as the igt_stop_helper can reuse
igt_wait_helper() to replace its own waiting routine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2014-07-24 11:44:45 +01:00
parent bd3cf81e98
commit 745945546f
3 changed files with 34 additions and 41 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ bool __igt_fork_helper(struct igt_helper_process *proc);
*/
#define igt_fork_helper(proc) \
for (; __igt_fork_helper(proc); exit(0))
void igt_wait_helper(struct igt_helper_process *proc);
int igt_wait_helper(struct igt_helper_process *proc);
void igt_stop_helper(struct igt_helper_process *proc);
/* exit handler code */