git: DragonFly_RELEASE_4_6 kernel - Reduce atomic ops in switch code

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 26 17:21:43 PDT 2016


commit e1bff962bff1ed6f5d4d19d3c6867d58fda7cfee
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 26 12:56:31 2016 -0700

    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.

Summary of changes:
 sys/kern/init_main.c                |  2 ++
 sys/kern/lwkt_thread.c              |  1 +
 sys/platform/pc64/x86_64/genassym.c |  4 ++++
 sys/platform/pc64/x86_64/global.s   |  4 ++++
 sys/platform/pc64/x86_64/swtch.s    | 36 ++++++++++++------------------------
 sys/sys/globaldata.h                |  4 +++-
 6 files changed, 26 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e1bff962bff1ed6f5d4d19d3c6867d58fda7cfee


-- 
DragonFly BSD source repository



More information about the Commits mailing list