kern_clock.c (35044) | kern_clock.c (35058) |
---|---|
1static volatile int print_tci = 1; 2 3/*- 4 * Copyright (c) 1997, 1998 Poul-Henning Kamp <phk@FreeBSD.org> 5 * Copyright (c) 1982, 1986, 1991, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 | 1static volatile int print_tci = 1; 2 3/*- 4 * Copyright (c) 1997, 1998 Poul-Henning Kamp <phk@FreeBSD.org> 5 * Copyright (c) 1982, 1986, 1991, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 |
42 * $Id: kern_clock.c,v 1.64 1998/04/04 18:46:09 phk Exp $ | 42 * $Id: kern_clock.c,v 1.65 1998/04/05 11:49:34 phk Exp $ |
43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/dkstat.h> 48#include <sys/callout.h> 49#include <sys/kernel.h> 50#include <sys/proc.h> --- 126 unchanged lines hidden (view full) --- 177 if (p) { 178 register struct pstats *pstats; 179 180 /* 181 * Run current process's virtual and profile time, as needed. 182 */ 183 pstats = p->p_stats; 184 if (CLKF_USERMODE(frame) && | 43 */ 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/dkstat.h> 48#include <sys/callout.h> 49#include <sys/kernel.h> 50#include <sys/proc.h> --- 126 unchanged lines hidden (view full) --- 177 if (p) { 178 register struct pstats *pstats; 179 180 /* 181 * Run current process's virtual and profile time, as needed. 182 */ 183 pstats = p->p_stats; 184 if (CLKF_USERMODE(frame) && |
185 timerisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) && | 185 timevalisset(&pstats->p_timer[ITIMER_VIRTUAL].it_value) && |
186 itimerdecr(&pstats->p_timer[ITIMER_VIRTUAL], tick) == 0) 187 psignal(p, SIGVTALRM); | 186 itimerdecr(&pstats->p_timer[ITIMER_VIRTUAL], tick) == 0) 187 psignal(p, SIGVTALRM); |
188 if (timerisset(&pstats->p_timer[ITIMER_PROF].it_value) && | 188 if (timevalisset(&pstats->p_timer[ITIMER_PROF].it_value) && |
189 itimerdecr(&pstats->p_timer[ITIMER_PROF], tick) == 0) 190 psignal(p, SIGPROF); 191 } 192 193#if defined(SMP) && defined(BETTER_CLOCK) 194 forward_hardclock(pscnt); 195#endif 196 --- 641 unchanged lines hidden --- | 189 itimerdecr(&pstats->p_timer[ITIMER_PROF], tick) == 0) 190 psignal(p, SIGPROF); 191 } 192 193#if defined(SMP) && defined(BETTER_CLOCK) 194 forward_hardclock(pscnt); 195#endif 196 --- 641 unchanged lines hidden --- |