subr_uio.c (72200) | subr_uio.c (72376) |
---|---|
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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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_subr.c 8.3 (Berkeley) 1/21/94 | 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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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_subr.c 8.3 (Berkeley) 1/21/94 |
39 * $FreeBSD: head/sys/kern/kern_subr.c 72200 2001-02-09 06:11:45Z bmilekic $ | 39 * $FreeBSD: head/sys/kern/kern_subr.c 72376 2001-02-12 00:20:08Z jake $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/ktr.h> 46#include <sys/proc.h> 47#include <sys/malloc.h> --- 326 unchanged lines hidden (view full) --- 374{ 375 struct proc *p; 376 int s; 377 378 p = curproc; 379 s = splhigh(); 380 mtx_lock_spin(&sched_lock); 381 DROP_GIANT_NOSWITCH(); | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/ktr.h> 46#include <sys/proc.h> 47#include <sys/malloc.h> --- 326 unchanged lines hidden (view full) --- 374{ 375 struct proc *p; 376 int s; 377 378 p = curproc; 379 s = splhigh(); 380 mtx_lock_spin(&sched_lock); 381 DROP_GIANT_NOSWITCH(); |
382 p->p_priority = p->p_usrpri; | 382 p->p_pri.pri_level = p->p_pri.pri_user; |
383 setrunqueue(p); 384 p->p_stats->p_ru.ru_nivcsw++; 385 mi_switch(); 386 mtx_unlock_spin(&sched_lock); 387 PICKUP_GIANT(); 388 splx(s); 389} | 383 setrunqueue(p); 384 p->p_stats->p_ru.ru_nivcsw++; 385 mi_switch(); 386 mtx_unlock_spin(&sched_lock); 387 PICKUP_GIANT(); 388 splx(s); 389} |