summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sysfs_rc6_residency.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sysfs_rc6_residency.c b/tests/sysfs_rc6_residency.c
index e539cf99..3fcdbeb7 100644
--- a/tests/sysfs_rc6_residency.c
+++ b/tests/sysfs_rc6_residency.c
@@ -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);