[igt-dev] [PATCH i-g-t 5/5] tests/i915/i915_pm_dc: Sleep not reqd. to reset counter
Imre Deak
imre.deak at intel.com
Mon Sep 12 13:23:28 UTC 2022
On Fri, Sep 09, 2022 at 05:19:11PM +0530, Swati Sharma wrote:
> 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 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