[igt-dev] [PATCH i-g-t 5/5] tests/i915/i915_pm_dc: Sleep not reqd. to reset counter

Swati Sharma swati2.sharma at intel.com
Fri Sep 9 11:49:11 UTC 2022


Sleep is not required since we are polling for the same condition.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/i915/i915_pm_dc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c
index 142975e6c..fd5e2c089 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_pm_dc.c
@@ -470,7 +470,6 @@ static void setup_dc9_dpms(data_t *data, int dc_target)
 	}
 	prev_rpm = read_runtime_suspended_time(data->drm_fd);
 	dpms_off(data);
-	sleep(1); /* wait for counters reset*/
 	check_dc9(data, dc_target, prev_dc, prev_rpm);
 	dpms_on(data);
 }
-- 
2.25.1



More information about the igt-dev mailing list