kernel - Reduce atomic ops in switch code
commitee89e80ba8c2a7ec5abadda658ca674775f61949
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 19:56:31 +0000 (26 12:56 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Jul 2016 19:56:31 +0000 (26 12:56 -0700)
tree1aae5d07c561590ef70c1bdbefd309b63ab6a528
parent02d41d671640c77ab0dbf777229d504c8acaadbc
kernel - Reduce atomic ops in switch code

* Instead of using four atomic 'and' ops and four atomic 'or' ops, use
  one atomic 'and' and one atomic 'or' when adjusting the pmap->pm_active.

* Store the array index and simplified cpu mask in the globaldata structure
  for the above operation.
sys/kern/init_main.c
sys/kern/lwkt_thread.c
sys/platform/pc64/x86_64/genassym.c
sys/platform/pc64/x86_64/global.s
sys/platform/pc64/x86_64/swtch.s
sys/sys/globaldata.h