tests/sysfs_rc6_residency: add some sleep before testing

That way I can run i-g-t on my ivb without spurious failures.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2012-04-11 14:55:30 +02:00
parent f841f4028c
commit ee014dbb8d

View File

@ -66,6 +66,10 @@ int main(int argc, char *argv[])
ret = asprintf(&path, "/sys/class/drm/card%d/power/rc6_enable", device);
assert(ret != -1);
/* For some reason my ivb isn't idle even after syncing up with the gpu.
* Let's add a sleept just to make it happy. */
sleep(5);
if (readit(path) == 0)
exit(EXIT_SUCCESS);