From b5963a39f7d34e5ad084e8d6f44d4e8d7eec46f2 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Mon, 23 Jul 2018 12:46:58 +0100 Subject: 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 Reviewed-by: Chris Wilson --- tests/perf_pmu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/perf_pmu.c') 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); } -- cgit v1.2.3