[openib-general] [PATCH] mthca: initialize send and receive queue locks separately

Michael S. Tsirkin mst at mellanox.co.il
Tue Jul 4 05:52:22 PDT 2006


Quoting r. Ingo Molnar <mingo at elte.hu>:
> Subject: Re: [PATCH] mthca: initialize send and receive queue locks separately
> 
> 
> * Michael S. Tsirkin <mst at mellanox.co.il> wrote:
> 
> > > Has no effect on non-lockdep kernels.
> > 
> > Hmm ... adding parameters to function still has text cost, I think. No?
> 
> it shouldnt - it's a static function and the parameter is unused _and_ 
> is of a type that is zero-size [on non-lockdep kernels] - gcc ought to 
> be able to optimize it out.

Ingo, you are right, and I just checked this with several gcc versions.
More power to you :)

-- 
MST




More information about the general mailing list