Re: [thiscpuops upgrade 02/10] vmstat: Optimize zone counter modificationsthrough the use of this cpu operations

From: Tejun Heo
Date: Fri Nov 26 2010 - 11:26:48 EST


On 11/24/2010 12:51 AM, Christoph Lameter wrote:
> this cpu operations can be used to slightly optimize the function. The
> changes will avoid some address calculations and replace them with the
> use of the percpu segment register.
>
> If one would have this_cpu_inc_return and this_cpu_dec_return then it
> would be possible to optimize inc_zone_page_state and dec_zone_page_state even
> more.
>
> Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>

Looks correct to me but it would be nice to run this through sparse.

Thanks.

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