kern_synch.c (135051) | kern_synch.c (135295) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_synch.c 135051 2004-09-10 21:04:38Z julian $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_synch.c 135295 2004-09-16 07:12:59Z julian $"); |
39 40#include "opt_ktrace.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/condvar.h> 45#include <sys/kdb.h> 46#include <sys/kernel.h> --- 283 unchanged lines hidden (view full) --- 330 /* 331 * Finish up stats for outgoing thread. 332 */ 333 cnt.v_swtch++; 334 PCPU_SET(switchtime, new_switchtime); 335 PCPU_SET(switchticks, ticks); 336 CTR4(KTR_PROC, "mi_switch: old thread %p (kse %p, pid %ld, %s)", 337 (void *)td, td->td_sched, (long)p->p_pid, p->p_comm); | 39 40#include "opt_ktrace.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/condvar.h> 45#include <sys/kdb.h> 46#include <sys/kernel.h> --- 283 unchanged lines hidden (view full) --- 330 /* 331 * Finish up stats for outgoing thread. 332 */ 333 cnt.v_swtch++; 334 PCPU_SET(switchtime, new_switchtime); 335 PCPU_SET(switchticks, ticks); 336 CTR4(KTR_PROC, "mi_switch: old thread %p (kse %p, pid %ld, %s)", 337 (void *)td, td->td_sched, (long)p->p_pid, p->p_comm); |
338 if (td->td_proc->p_flag & P_SA) | 338 if ((flags & SW_VOL) && (td->td_proc->p_flag & P_SA)) |
339 newtd = thread_switchout(td, flags, newtd); 340 sched_switch(td, newtd, flags); 341 342 CTR4(KTR_PROC, "mi_switch: new thread %p (kse %p, pid %ld, %s)", 343 (void *)td, td->td_sched, (long)p->p_pid, p->p_comm); 344 345 /* 346 * If the last thread was exiting, finish cleaning it up. --- 123 unchanged lines hidden --- | 339 newtd = thread_switchout(td, flags, newtd); 340 sched_switch(td, newtd, flags); 341 342 CTR4(KTR_PROC, "mi_switch: new thread %p (kse %p, pid %ld, %s)", 343 (void *)td, td->td_sched, (long)p->p_pid, p->p_comm); 344 345 /* 346 * If the last thread was exiting, finish cleaning it up. --- 123 unchanged lines hidden --- |