PERFORCE change 55400 for review
Julian Elischer
julian at FreeBSD.org
Sun Jun 20 21:10:55 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=55400
Change 55400 by julian at julian_ref on 2004/06/20 21:10:48
compile this time..
Affected files ...
.. //depot/projects/nsched/sys/kern/kern_exec.c#6 edit
.. //depot/projects/nsched/sys/kern/kern_exit.c#12 edit
Differences ...
==== //depot/projects/nsched/sys/kern/kern_exec.c#6 (text+ko) ====
@@ -53,6 +53,7 @@
#include <sys/namei.h>
#include <sys/sf_buf.h>
#include <sys/sysent.h>
+#include <sys/sched.h>
#include <sys/shm.h>
#include <sys/sysctl.h>
#include <sys/user.h>
@@ -266,10 +267,10 @@
* This meams that we must get rid of any extra
* upcalls and kses we may have picked up along the way.
*/
- mtx_lock_spin(&sched_lock):
- sched_set_concurrancy(td, 1);
+ mtx_lock_spin(&sched_lock);
+ sched_set_concurrancy(td->td_ksegrp, 1);
upcall_remove(td);
- mtx_unlock_spin(&sched_lock):
+ mtx_unlock_spin(&sched_lock);
p->p_flag &= ~(P_SA|P_HADTHREADS);
td->td_mailbox = NULL;
td->td_pflags &= ~TDP_SA;
==== //depot/projects/nsched/sys/kern/kern_exit.c#12 (text+ko) ====
@@ -166,10 +166,10 @@
* ...
* Turn off threading support.
*/
- mtx_lock_spin(&sched_lock):
- sched_set_concurrancy(td, 1);
+ mtx_lock_spin(&sched_lock);
+ sched_set_concurrancy(td->td_ksegrp, 1);
upcall_remove(td);
- mtx_unlock_spin(&sched_lock):
+ mtx_unlock_spin(&sched_lock);
p->p_flag &= ~(P_SA|P_HADTHREADS);
td->td_mailbox = NULL;
td->td_pflags &= ~TDP_SA;
More information about the p4-projects
mailing list