kern_intr.c (74914) | kern_intr.c (76078) |
---|---|
1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/kern_intr.c 74914 2001-03-28 09:17:56Z jhb $ | 26 * $FreeBSD: head/sys/kern/kern_intr.c 76078 2001-04-27 19:28:25Z jhb $ |
27 * 28 */ 29 30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/rtprio.h> 34#include <sys/systm.h> --- 341 unchanged lines hidden (view full) --- 376 savecrit = sched_lock.mtx_savecrit; 377 mtx_intr_enable(&sched_lock); 378 if (curproc != PCPU_GET(idleproc)) 379 setrunqueue(curproc); 380 curproc->p_stats->p_ru.ru_nvcsw++; 381 mi_switch(); 382 sched_lock.mtx_savecrit = savecrit; 383 } else | 27 * 28 */ 29 30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/rtprio.h> 34#include <sys/systm.h> --- 341 unchanged lines hidden (view full) --- 376 savecrit = sched_lock.mtx_savecrit; 377 mtx_intr_enable(&sched_lock); 378 if (curproc != PCPU_GET(idleproc)) 379 setrunqueue(curproc); 380 curproc->p_stats->p_ru.ru_nvcsw++; 381 mi_switch(); 382 sched_lock.mtx_savecrit = savecrit; 383 } else |
384 need_resched(); | 384 need_resched(curproc); |
385 } else { 386 CTR3(KTR_INTR, __func__ ": pid %d: it_need %d, state %d", 387 p->p_pid, ithread->it_need, p->p_stat); 388 } 389 mtx_unlock_spin(&sched_lock); 390 391 return (0); 392} --- 238 unchanged lines hidden --- | 385 } else { 386 CTR3(KTR_INTR, __func__ ": pid %d: it_need %d, state %d", 387 p->p_pid, ithread->it_need, p->p_stat); 388 } 389 mtx_unlock_spin(&sched_lock); 390 391 return (0); 392} --- 238 unchanged lines hidden --- |