On Wed, Aug 10, 2016 at 04:22:10PM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > > 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@xxxxxxxxx> Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx