subr_trap.c (0c14ff0eb52ddc7fdbacc5c8645d79afcaf73e3a) subr_trap.c (222d01951f8677015e3e96c6950e809c0d983c09)
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

--- 177 unchanged lines hidden (view full) ---

186 if (p->p_sflag & (PS_ALRMPEND | PS_PROFPEND | PS_XCPU))
187 p->p_sflag &= ~(PS_ALRMPEND | PS_PROFPEND | PS_XCPU);
188#ifdef MAC
189 if (p->p_sflag & PS_MACPEND)
190 p->p_sflag &= ~PS_MACPEND;
191#endif
192 td->td_flags &= ~(TDF_ASTPENDING | TDF_NEEDSIGCHK |
193 TDF_NEEDRESCHED | TDF_INTERRUPT);
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

--- 177 unchanged lines hidden (view full) ---

186 if (p->p_sflag & (PS_ALRMPEND | PS_PROFPEND | PS_XCPU))
187 p->p_sflag &= ~(PS_ALRMPEND | PS_PROFPEND | PS_XCPU);
188#ifdef MAC
189 if (p->p_sflag & PS_MACPEND)
190 p->p_sflag &= ~PS_MACPEND;
191#endif
192 td->td_flags &= ~(TDF_ASTPENDING | TDF_NEEDSIGCHK |
193 TDF_NEEDRESCHED | TDF_INTERRUPT);
194 cnt.v_trap++;
195 mtx_unlock_spin(&sched_lock);
194 mtx_unlock_spin(&sched_lock);
195 VMCNT_ADD(trap, 1);
196
197 /*
198 * XXXKSE While the fact that we owe a user profiling
199 * tick is stored per thread in this code, the statistics
200 * themselves are still stored per process.
201 * This should probably change, by which I mean that
202 * possibly the location of both might change.
203 */

--- 75 unchanged lines hidden ---
196
197 /*
198 * XXXKSE While the fact that we owe a user profiling
199 * tick is stored per thread in this code, the statistics
200 * themselves are still stored per process.
201 * This should probably change, by which I mean that
202 * possibly the location of both might change.
203 */

--- 75 unchanged lines hidden ---