Commit d21a690f authored by Daniel Vetter's avatar Daniel Vetter

lib: Drop igt_child_done

Added in

commit 054eb1ab
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Thu Mar 30 14:32:29 2017 +0100

    benchmarks/gem_wsim: Command submission workload simulator

but since then the only user was lost.

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
parent 937df2ef
......@@ -1742,32 +1742,6 @@ bool __igt_fork(void)
}
/**
* igt_child_done:
*
* Lets the IGT core know that one of the children has exited.
*/
void igt_child_done(pid_t pid)
{
int i = 0;
int found = -1;
igt_assert(num_test_children > 1);
for (i = 0; i < num_test_children; i++) {
if (pid == test_children[i]) {
found = i;
break;
}
}
igt_assert(found >= 0);
num_test_children--;
for (i = found; i < num_test_children; i++)
test_children[i] = test_children[i + 1];
}
int __igt_waitchildren(void)
{
int err = 0;
......
......@@ -775,7 +775,6 @@ bool __igt_fork(void);
#define igt_fork(child, num_children) \
for (int child = 0; child < (num_children); child++) \
for (; __igt_fork(); exit(0))
void igt_child_done(pid_t pid);
int __igt_waitchildren(void);
void igt_waitchildren(void);
void igt_waitchildren_timeout(int seconds, const char *reason);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment