diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-07-23 12:46:58 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-08-02 11:32:28 +0100 |
commit | b5963a39f7d34e5ad084e8d6f44d4e8d7eec46f2 (patch) | |
tree | 67c53c1752b6160044f5afb399e8c55654d71ed0 /tests/perf_pmu.c | |
parent | 5fddf15b57f4dcb492a2e03ccf1d3fa2c015cd18 (diff) |
tests/perf_pmu: Restore runtime PM status at rc6 test exit
Avoid running subsequent subtests in non-default setup by restoring the
runtime PM config in one particular subtest.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/perf_pmu.c')
-rw-r--r-- | tests/perf_pmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index a1d36ac4..9a20abb6 100644 --- a/tests/perf_pmu.c +++ b/tests/perf_pmu.c @@ -1441,6 +1441,9 @@ test_rc6(int gem_fd, unsigned int flags) close(fw); close(fd); + if (flags & TEST_RUNTIME_PM) + igt_restore_runtime_pm(); + assert_within_epsilon(busy - prev, 0.0, tolerance); } |