Date: Sun, 20 Jun 2004 21:10:50 GMT From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 55400 for review Message-ID: <200406202110.i5KLAog1068504@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=55400 Change 55400 by julian@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406202110.i5KLAog1068504>