[Intel-gfx] [PATCH i-g-t 4/7] intel-gpu-overlay: Catch-up to new i915 PMU
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 29 13:04:14 UTC 2017
Quoting Tvrtko Ursulin (2017-09-29 13:39:36)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> v2: Update for i915 changes.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> ---
> @@ -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 <chris at chris-wilson.co.uk>
-Chris
More information about the Intel-gfx
mailing list