kern_clock.c (121127) | kern_clock.c (123740) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 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. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 39 */ 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 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. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 121127 2003-10-16 08:39:15Z jeff $"); | 42__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 123740 2003-12-23 02:36:43Z peter $"); |
43 44#include "opt_ntp.h" 45#include "opt_ddb.h" 46#include "opt_watchdog.h" 47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/callout.h> --- 303 unchanged lines hidden (view full) --- 354{ 355 356 PROC_LOCK_ASSERT(p, MA_OWNED); 357 if (p->p_flag & P_PROFIL) { 358 if (p->p_profthreads != 0) { 359 p->p_flag |= P_STOPPROF; 360 while (p->p_profthreads != 0) 361 msleep(&p->p_profthreads, &p->p_mtx, PPAUSE, | 43 44#include "opt_ntp.h" 45#include "opt_ddb.h" 46#include "opt_watchdog.h" 47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/callout.h> --- 303 unchanged lines hidden (view full) --- 354{ 355 356 PROC_LOCK_ASSERT(p, MA_OWNED); 357 if (p->p_flag & P_PROFIL) { 358 if (p->p_profthreads != 0) { 359 p->p_flag |= P_STOPPROF; 360 while (p->p_profthreads != 0) 361 msleep(&p->p_profthreads, &p->p_mtx, PPAUSE, |
362 "stopprof", NULL); | 362 "stopprof", 0); |
363 p->p_flag &= ~P_STOPPROF; 364 } 365 mtx_lock_spin(&sched_lock); 366 p->p_flag &= ~P_PROFIL; 367 if (--profprocs == 0) 368 cpu_stopprofclock(); 369 mtx_unlock_spin(&sched_lock); 370 } --- 193 unchanged lines hidden --- | 363 p->p_flag &= ~P_STOPPROF; 364 } 365 mtx_lock_spin(&sched_lock); 366 p->p_flag &= ~P_PROFIL; 367 if (--profprocs == 0) 368 cpu_stopprofclock(); 369 mtx_unlock_spin(&sched_lock); 370 } --- 193 unchanged lines hidden --- |