• Zachary Amsden's avatar
    [PATCH] i386: pte xchg optimization · 142dd975
    Zachary Amsden authored
    In situations where page table updates need only be made locally, and there is
    no cross-processor A/D bit races involved, we need not use the heavyweight
    xchg instruction to atomically fetch and clear page table entries.  Instead,
    we can just read and clear them directly.
    
    This introduces a neat optimization for non-SMP kernels; drop the atomic xchg
    operations from page table updates.
    
    Thanks to Michel Lespinasse for noting this potential optimization.
    Signed-off-by: default avatarZachary Amsden <zach@vmware.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    142dd975
pgtable-2level.h 2.87 KB