Re: [PATCH] mthca: initialize send and receive queue locks separately
From: Michael S. Tsirkin
Date: Tue Jul 04 2006 - 08:50:34 EST
Quoting r. Ingo Molnar <mingo@xxxxxxx>:
> Subject: Re: [PATCH] mthca: initialize send and receive queue locks separately
>
>
> * Michael S. Tsirkin <mst@xxxxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/