summaryrefslogtreecommitdiff
path: root/lib/igt_aux.h
diff options
context:
space:
mode:
authorLyude <lyude@redhat.com>2016-11-04 16:27:12 -0400
committerLyude <lyude@redhat.com>2017-01-26 11:21:26 -0500
commitc2ddb81c460f95e0074c43687e4bb45fe893198f (patch)
tree605063121b910694027f2b60f72901df7e1aae31 /lib/igt_aux.h
parent24bfa3e89da0e3cbd7f752ac0bfe4c47d006ded7 (diff)
igt_aux: Add igt_set_autoresume_delay()
The default autoresume delay is about 5 seconds. It's possible on a system that's not very fast this might not be a long enough time, since an asynchronous hotplug event we scheduled on the chamelium that was intended to happen during suspend could happen before we actually manage to suspend. So, add a function that allows us to increase the autoresume time to ensure this never happens during suspend/resume tests with the chamelium. Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net> Signed-off-by: Lyude <lyude@redhat.com> Changes since v1: - Use igt_require, not assert
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r--lib/igt_aux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index 30f914b9..cb54ca5e 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -183,6 +183,7 @@ enum igt_suspend_test {
void igt_system_suspend_autoresume(enum igt_suspend_state state,
enum igt_suspend_test test);
+void igt_set_autoresume_delay(int delay_secs);
/* dropping priviledges */
void igt_drop_root(void);