Quoting Tvrtko Ursulin (2017-09-29 13:39:36)
> From: Tvrtko Ursulin <[email protected]>
> 
> v2: Update for i915 changes.
> 
> Signed-off-by: Tvrtko Ursulin <[email protected]>
> ---
> @@ -176,8 +176,8 @@ int gpu_freq_update(struct gpu_freq *gf)
>                         return EAGAIN;
>                 }
>  
> -               gf->current = (s->act - d->act) / d_time;
> -               gf->request = (s->req - d->req) / d_time;
> +               gf->current = (s->act - d->act) * 1000000000 / d_time;
> +               gf->request = (s->req - d->req) * 1000000000 / d_time;

1e9 please. (And 1e-6 later)
Reviewed-by: Chris Wilson <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to