lkml.org 
[lkml]   [2010]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [thisops uV2 02/10] vmstat: Optimize zone counter modifications through the use of this cpu operations
    From
    On Fri, Nov 26, 2010 at 11:09 PM, Christoph Lameter <cl@linux.com> 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.
    >
    > V1->V2:
    >        - Fix __dec_zone_state overflow handling
    >        - Use s8 variables for temporary storage.
    >
    > Signed-off-by: Christoph Lameter <cl@linux.com>

    Reviewed-by: Pekka Enberg <penberg@kernel.org>
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-11-27 09:03    [W:0.019 / U:31.500 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site