subr_uio.c (98998) | subr_uio.c (99072) |
---|---|
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 98998 2002-06-29 00:29:12Z alfred $ | 39 * $FreeBSD: head/sys/kern/kern_subr.c 99072 2002-06-29 17:26:22Z julian $ |
40 */ 41 42#include "opt_zero.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/kernel.h> 47#include <sys/ktr.h> --- 485 unchanged lines hidden (view full) --- 533uio_yield() 534{ 535 struct thread *td; 536 537 td = curthread; 538 mtx_lock_spin(&sched_lock); 539 DROP_GIANT(); 540 td->td_priority = td->td_ksegrp->kg_user_pri; /* XXXKSE */ | 40 */ 41 42#include "opt_zero.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/kernel.h> 47#include <sys/ktr.h> --- 485 unchanged lines hidden (view full) --- 533uio_yield() 534{ 535 struct thread *td; 536 537 td = curthread; 538 mtx_lock_spin(&sched_lock); 539 DROP_GIANT(); 540 td->td_priority = td->td_ksegrp->kg_user_pri; /* XXXKSE */ |
541 setrunqueue(td); | |
542 td->td_proc->p_stats->p_ru.ru_nivcsw++; 543 mi_switch(); 544 mtx_unlock_spin(&sched_lock); 545 PICKUP_GIANT(); 546} 547 548int 549copyinfrom(const void *src, void *dst, size_t len, int seg) --- 33 unchanged lines hidden --- | 541 td->td_proc->p_stats->p_ru.ru_nivcsw++; 542 mi_switch(); 543 mtx_unlock_spin(&sched_lock); 544 PICKUP_GIANT(); 545} 546 547int 548copyinfrom(const void *src, void *dst, size_t len, int seg) --- 33 unchanged lines hidden --- |