subr_uio.c (67365) | subr_uio.c (68808) |
---|---|
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 67365 2000-10-20 07:58:15Z jhb $ | 39 * $FreeBSD: head/sys/kern/kern_subr.c 68808 2000-11-16 02:16:44Z jhb $ |
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> --- 324 unchanged lines hidden (view full) --- 372static void 373uio_yield() 374{ 375 struct proc *p; 376 int s; 377 378 p = curproc; 379 s = splhigh(); | 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> --- 324 unchanged lines hidden (view full) --- 372static void 373uio_yield() 374{ 375 struct proc *p; 376 int s; 377 378 p = curproc; 379 s = splhigh(); |
380 DROP_GIANT_NOSWITCH(); |
|
380 mtx_enter(&sched_lock, MTX_SPIN); 381 p->p_priority = p->p_usrpri; 382 setrunqueue(p); 383 p->p_stats->p_ru.ru_nivcsw++; 384 mi_switch(); 385 mtx_exit(&sched_lock, MTX_SPIN); | 381 mtx_enter(&sched_lock, MTX_SPIN); 382 p->p_priority = p->p_usrpri; 383 setrunqueue(p); 384 p->p_stats->p_ru.ru_nivcsw++; 385 mi_switch(); 386 mtx_exit(&sched_lock, MTX_SPIN); |
387 PICKUP_GIANT(); |
|
386 splx(s); 387} | 388 splx(s); 389} |