kernel - Slightly reduce extra spinlock ops in _pv_alloc()
commit07fc7b93ce343109afb181f86523db4468598fab
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 22 Feb 2017 07:55:09 +0000 (21 23:55 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 22 Feb 2017 18:50:21 +0000 (22 10:50 -0800)
tree75b84fc2327b02546a530810fd968f2db3f9b73f
parent01740954a98f4843efca6fb69b6260c846ff05a6
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.
sys/platform/pc64/include/globaldata.h
sys/platform/pc64/x86_64/pmap.c