git: kernel - kernel - Incidental MPLOCK removal (usched, affinity)

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jan 11 10:49:40 PST 2017


commit 480ed3de1b262fe0d036ad078a8dec4a4164a74c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jan 11 10:02:55 2017 -0800

    kernel - kernel - Incidental MPLOCK removal (usched, affinity)
    
    * Affinity code needs to be protected via p->p_token and lwp->lwp_token.
      Remove use of the mplock.
    
    * If tid is -1 getaffinity() will lookup the lowest-numbered thread,
      and setaffinity will adjust ALL threads associated with the process.
    
    * usched doesn't need mplock2.h

Summary of changes:
 lib/libc/sys/lwp_setaffinity.2 |  11 ++--
 sys/kern/kern_usched.c         | 113 +++++++++++++++++++++++------------------
 sys/kern/usched_bsd4.c         |   1 -
 sys/kern/usched_dfly.c         |   1 -
 sys/kern/usched_dummy.c        |   1 -
 5 files changed, 69 insertions(+), 58 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/480ed3de1b262fe0d036ad078a8dec4a4164a74c


-- 
DragonFly BSD source repository



More information about the Commits mailing list