Re: percpucounter: Optimize __percpu_counter_add a bit through theuse of this_cpu operations

From: Eric Dumazet
Date: Fri Oct 29 2010 - 13:59:08 EST


Le vendredi 29 octobre 2010 Ã 10:56 -0500, Christoph Lameter a Ãcrit :
> this_cpu_* operations can be used to optimize __percpu_counter_add a
> bit. Avoids some address arithmetic and saves 12 bytes.
>
...
> Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>
>

Acked-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>



--
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/