kern_intr.c (113612) | kern_intr.c (113613) |
---|---|
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 113612 2003-04-17 22:01:01Z jhb $ | 26 * $FreeBSD: head/sys/kern/kern_intr.c 113613 2003-04-17 22:02:47Z jhb $ |
27 * 28 */ 29 30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/rtprio.h> --- 529 unchanged lines hidden (view full) --- 564} 565 566/* 567 * Start standard software interrupt threads 568 */ 569static void 570start_softintr(void *dummy) 571{ | 27 * 28 */ 29 30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <sys/rtprio.h> --- 529 unchanged lines hidden (view full) --- 564} 565 566/* 567 * Start standard software interrupt threads 568 */ 569static void 570start_softintr(void *dummy) 571{ |
572 struct proc *p; |
|
572 573 if (swi_add(&clk_ithd, "clock", softclock, NULL, SWI_CLOCK, 574 INTR_MPSAFE, &softclock_ih) || 575 swi_add(NULL, "vm", swi_vm, NULL, SWI_VM, 0, &vm_ih)) 576 panic("died while creating standard software ithreads"); 577 | 573 574 if (swi_add(&clk_ithd, "clock", softclock, NULL, SWI_CLOCK, 575 INTR_MPSAFE, &softclock_ih) || 576 swi_add(NULL, "vm", swi_vm, NULL, SWI_VM, 0, &vm_ih)) 577 panic("died while creating standard software ithreads"); 578 |
578 PROC_LOCK(clk_ithd->it_td->td_proc); 579 clk_ithd->it_td->td_proc->p_flag |= P_NOLOAD; 580 PROC_UNLOCK(clk_ithd->it_td->td_proc); | 579 p = clk_ithd->it_td->td_proc; 580 PROC_LOCK(p); 581 p->p_flag |= P_NOLOAD; 582 PROC_UNLOCK(p); |
581} 582SYSINIT(start_softintr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_softintr, NULL) 583 584/* 585 * Sysctls used by systat and others: hw.intrnames and hw.intrcnt. 586 * The data for this machine dependent, and the declarations are in machine 587 * dependent code. The layout of intrnames and intrcnt however is machine 588 * independent. --- 23 unchanged lines hidden --- | 583} 584SYSINIT(start_softintr, SI_SUB_SOFTINTR, SI_ORDER_FIRST, start_softintr, NULL) 585 586/* 587 * Sysctls used by systat and others: hw.intrnames and hw.intrcnt. 588 * The data for this machine dependent, and the declarations are in machine 589 * dependent code. The layout of intrnames and intrcnt however is machine 590 * independent. --- 23 unchanged lines hidden --- |