[Intel-gfx] [PATCH] drm/i915: Store number of active engines in device info

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 10 15:46:35 UTC 2016


On Wed, Aug 10, 2016 at 04:22:10PM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Until now code was calling hweight32 to figure out the
> number from device_info->ring_mask at runtime. Instead
> we can cache it at engine init time and use directly.

And calling hweight32() rather than hweight() on a u8.
 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

Momentary concern as I had 4 hweights inside intel_ringbuffer.c - then
realised I've a patch to add one more.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list