diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-07-23 12:46:57 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-08-02 11:32:17 +0100 |
commit | 5fddf15b57f4dcb492a2e03ccf1d3fa2c015cd18 (patch) | |
tree | b57ab8cff82f6dde00ff0f12b38c2c0724121edc /lib/igt_pm.h | |
parent | b29101e5806e794615685aee51ba526ae90971f5 (diff) |
lib/igt_pm: Export function to restore runtime PM status
In cases when runtime PM is enabled only from individual subtests and not
whole tests it is usable to be able to restore the old runtime PM config
and so avoid running subsequent subtests in an unexpected environment.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_pm.h')
-rw-r--r-- | lib/igt_pm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_pm.h b/lib/igt_pm.h index eced39f8..10cc6794 100644 --- a/lib/igt_pm.h +++ b/lib/igt_pm.h @@ -47,6 +47,7 @@ enum igt_runtime_pm_status { }; bool igt_setup_runtime_pm(void); +void igt_restore_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); |