[Intel-gfx] [PATCH 2/2] drm/i915/chv: Implement SSEU info for CHV

Damien Lespiau damien.lespiau at intel.com
Tue Aug 5 15:41:54 CEST 2014


On Tue, Aug 05, 2014 at 08:47:54AM -0500, Jeff McGee wrote:
> > > +
> > > +	/* Copy SSEU info to the const device info with pointer magic */
> > > +	*(struct intel_sseu_info *)&dev_priv->info.sseu = sseu_info;
> > 
> > I've thought gcc just does a memcpy for plain strut assignments, i.e.
> > 
> > +	dev_priv->info.sseu = sseu_info;

That's what we have intel_device_info_runtime_init(), the SSEU init
function should be called from there.

-- 
Damien



More information about the Intel-gfx mailing list