On Wed, Jul 06, 2011 at 04:03:14PM -0700, Keith Packard wrote:
> On Wed,  6 Jul 2011 15:14:52 -0700, Ben Widawsky <b...@bwidawsk.net> wrote:
> 
> 
> > -static int i915_modeset = -1;
> > +static int i915_modeset __read_mostly = -1;
> 
> What effect does this have? Performance? Code size? More warnings?

__read_mostly attempts to put variables in a cachelines to make it more
SMP friendly. I'm not sure if there is a performance impact as a result,
but made this patch based on feedback from Chris. I've seen no
regressions on Nexuiz.

The __always_unused I don't think has any real use other than
documentation. Potentially GCC could do something useful with it, but I
don't think it's enabled anywhere important.

Ben

Attachment: pgprOQOJMOuVK.pgp
Description: PGP signature

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to