lib/igt_aux: Extract runtime pm helpers from pm_pc8

I want to use them elsewhere ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-05-14 16:10:50 +02:00
parent 1bee7e8b82
commit bd521b493e
3 changed files with 128 additions and 93 deletions
+11
View File
@@ -57,6 +57,17 @@ void igt_drop_root(void);
void igt_wait_for_keypress(void);
enum igt_runtime_pm_status {
IGT_RUNTIME_PM_STATUS_ACTIVE,
IGT_RUNTIME_PM_STATUS_SUSPENDED,
IGT_RUNTIME_PM_STATUS_SUSPENDING,
IGT_RUNTIME_PM_STATUS_RESUMING,
IGT_RUNTIME_PM_STATUS_UNKNOWN,
};
bool igt_setup_runtime_pm(void);
enum igt_runtime_pm_status igt_get_runtime_pm_status(void);
bool igt_wait_for_pm_status(enum igt_runtime_pm_status status);
/* sysinfo cross-arch wrappers from intel_os.c */
/* These are separate to allow easier testing when porting, see the comment at