subr_uio.c (163709) | subr_uio.c (164936) |
---|---|
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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_subr.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_subr.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_subr.c 163709 2006-10-26 21:42:22Z jb $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_subr.c 164936 2006-12-06 06:34:57Z julian $"); |
39 40#include "opt_zero.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/ktr.h> 46#include <sys/limits.h> --- 378 unchanged lines hidden (view full) --- 425void 426uio_yield(void) 427{ 428 struct thread *td; 429 430 td = curthread; 431 mtx_lock_spin(&sched_lock); 432 DROP_GIANT(); | 39 40#include "opt_zero.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/ktr.h> 46#include <sys/limits.h> --- 378 unchanged lines hidden (view full) --- 425void 426uio_yield(void) 427{ 428 struct thread *td; 429 430 td = curthread; 431 mtx_lock_spin(&sched_lock); 432 DROP_GIANT(); |
433#ifdef KSE 434 sched_prio(td, td->td_ksegrp->kg_user_pri); /* XXXKSE */ 435#else | |
436 sched_prio(td, td->td_user_pri); | 433 sched_prio(td, td->td_user_pri); |
437#endif | |
438 mi_switch(SW_INVOL, NULL); 439 mtx_unlock_spin(&sched_lock); 440 PICKUP_GIANT(); 441} 442 443int 444copyinfrom(const void * __restrict src, void * __restrict dst, size_t len, 445 int seg) --- 102 unchanged lines hidden --- | 434 mi_switch(SW_INVOL, NULL); 435 mtx_unlock_spin(&sched_lock); 436 PICKUP_GIANT(); 437} 438 439int 440copyinfrom(const void * __restrict src, void * __restrict dst, size_t len, 441 int seg) --- 102 unchanged lines hidden --- |