[Intel-gfx] [PATCH 7/7] drm/i915/perf: reuse timestamp frequency from device info

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 10 21:00:37 UTC 2017


Quoting Lionel Landwerlin (2017-11-10 19:08:45)
> @@ -3528,7 +3502,7 @@ void i915_perf_init(struct drm_i915_private *dev_priv)
>                 spin_lock_init(&dev_priv->perf.oa.oa_buffer.ptr_lock);
>  
>                 oa_sample_rate_hard_limit =
> -                       dev_priv->perf.oa.timestamp_frequency / 2;
> +                       INTEL_INFO(dev_priv)->cs_timestamp_frequency / 2;

32-bit builds may complain, as this is ostensibly now a 64b division.
Right?
-Chris


More information about the Intel-gfx mailing list