Deleted Added
full compact
subr_hash.c (83959) subr_hash.c (88900)
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 83959 2001-09-26 06:54:32Z dillon $
39 * $FreeBSD: head/sys/kern/kern_subr.c 88900 2002-01-05 08:47:13Z 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/lock.h>
47#include <sys/mutex.h>

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

381
382void
383uio_yield()
384{
385 struct thread *td;
386
387 td = curthread;
388 mtx_lock_spin(&sched_lock);
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/lock.h>
47#include <sys/mutex.h>

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

381
382void
383uio_yield()
384{
385 struct thread *td;
386
387 td = curthread;
388 mtx_lock_spin(&sched_lock);
389 DROP_GIANT_NOSWITCH();
389 DROP_GIANT();
390 td->td_ksegrp->kg_pri.pri_level = td->td_ksegrp->kg_pri.pri_user;
391 setrunqueue(td);
392 td->td_proc->p_stats->p_ru.ru_nivcsw++;
393 mi_switch();
394 mtx_unlock_spin(&sched_lock);
395 PICKUP_GIANT();
396}
397

--- 35 unchanged lines hidden ---
390 td->td_ksegrp->kg_pri.pri_level = td->td_ksegrp->kg_pri.pri_user;
391 setrunqueue(td);
392 td->td_proc->p_stats->p_ru.ru_nivcsw++;
393 mi_switch();
394 mtx_unlock_spin(&sched_lock);
395 PICKUP_GIANT();
396}
397

--- 35 unchanged lines hidden ---