[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
Tue Sep 13 09:34:46 UTC 2022


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

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
Reviewed-by: Imre Deak <imre.deak 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 1e7b6177f..506aff5a2 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_pm_dc.c
@@ -472,7 +472,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