git: kernel - Slightly reduce extra spinlock ops in _pv_alloc()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Feb 22 10:50:25 PST 2017


commit 07fc7b93ce343109afb181f86523db4468598fab
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 21 23:55:09 2017 -0800

    kernel - Slightly reduce extra spinlock ops in _pv_alloc()
    
    * Pre-stage pnew (new pv_entry) using a pcpu cache, avoiding an
      unnecessary spin_unlock/spin_lock sequence in _pv_alloc().
    
    * No real performance improvement measured, but the code is cleaner so
      use it.

Summary of changes:
 sys/platform/pc64/include/globaldata.h |  4 ++-
 sys/platform/pc64/x86_64/pmap.c        | 55 +++++++++++++++++++++-------------
 2 files changed, 37 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/07fc7b93ce343109afb181f86523db4468598fab


-- 
DragonFly BSD source repository



More information about the Commits mailing list