- fix for bug 152 on Panda, wait for more time for child to finish - don't wait for child pid for offlined cpus - bug 152
Signed-off-by: Sanjay Singh Rawat sanjay.rawat@linaro.org --- cpuidle/cpuidle_killer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/cpuidle/cpuidle_killer.c b/cpuidle/cpuidle_killer.c index ae3b54f..49fe1ea 100644 --- a/cpuidle/cpuidle_killer.c +++ b/cpuidle/cpuidle_killer.c @@ -181,11 +181,17 @@ int main(int argc, char *argv[])
signal(SIGALRM, timeout);
- alarm(DURATION + 5); + alarm(DURATION + 20);
for (i = 0; i < nrcpus; i++) { int status;
+ /* skip for offline cpus */ + if (!pids[i]) { + fprintf(stderr, "no_wait_for_process on cpu %d\n", i); + continue; + } + waitpid(pids[i], &status, 0); if (status != 0) { fprintf(stderr, "test for cpu %d has failed\n", i);