commit 480ed3de1b262fe0d036ad078a8dec4a4164a74c
Author: Matthew Dillon <[email protected]>
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