cvs commit: src/sys/amd64/amd64 mp_machdep.c src/sys/i386/i386
mp_machdep.c src/sys/ia64/ia64 mp_machdep.c
src/sys/sparc64/sparc64 mp_machdep.c src/sys/sun4v/sun4v
mp_machdep.c
Jeff Roberson
jeff at FreeBSD.org
Mon Jun 4 23:56:09 UTC 2007
jeff 2007-06-04 23:56:08 UTC
FreeBSD src repository
Modified files:
sys/amd64/amd64 mp_machdep.c
sys/i386/i386 mp_machdep.c
sys/ia64/ia64 mp_machdep.c
sys/sparc64/sparc64 mp_machdep.c
sys/sun4v/sun4v mp_machdep.c
Log:
Commit 10/14 of sched_lock decomposition.
- Use sched_throw() rather than replicating the same cpu_throw() code for
each architecture. This also allows the scheduler to use any locking it
may want to.
- Use the thread_lock() rather than sched_lock when preempting.
- The scheduler lock is not required to synchronize release_aps.
Tested by: kris, current@
Tested on: i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc.
Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each)
Revision Changes Path
1.286 +4 -23 src/sys/amd64/amd64/mp_machdep.c
1.280 +5 -21 src/sys/i386/i386/mp_machdep.c
1.63 +1 -16 src/sys/ia64/ia64/mp_machdep.c
1.35 +2 -6 src/sys/sparc64/sparc64/mp_machdep.c
1.7 +4 -10 src/sys/sun4v/sun4v/mp_machdep.c
More information about the cvs-all
mailing list