lkml.org 
[lkml]   [2010]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [thiscpuops upgrade 02/10] vmstat: Optimize zone counter modifications through the use of this cpu operations
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@linux.com>

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

Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-11-26 17:29    [W:0.252 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site