sched_4bsd.c (172483) | sched_4bsd.c (173004) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 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. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 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. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/sched_4bsd.c 172483 2007-10-08 23:45:24Z jeff $"); | 36__FBSDID("$FreeBSD: head/sys/kern/sched_4bsd.c 173004 2007-10-26 08:00:41Z julian $"); |
37 38#include "opt_hwpmc_hooks.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/ktr.h> 44#include <sys/lock.h> --- 1317 unchanged lines hidden (view full) --- 1362} 1363 1364/* 1365 * The actual idle process. 1366 */ 1367void 1368sched_idletd(void *dummy) 1369{ | 37 38#include "opt_hwpmc_hooks.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/ktr.h> 44#include <sys/lock.h> --- 1317 unchanged lines hidden (view full) --- 1362} 1363 1364/* 1365 * The actual idle process. 1366 */ 1367void 1368sched_idletd(void *dummy) 1369{ |
1370 struct proc *p; | |
1371 struct thread *td; 1372 1373 td = curthread; | 1370 struct thread *td; 1371 1372 td = curthread; |
1374 p = td->td_proc; | |
1375 for (;;) { 1376 mtx_assert(&Giant, MA_NOTOWNED); 1377 1378 while (sched_runnable() == 0) 1379 cpu_idle(); 1380 1381 mtx_lock_spin(&sched_lock); 1382 mi_switch(SW_VOL, NULL); --- 47 unchanged lines hidden --- | 1373 for (;;) { 1374 mtx_assert(&Giant, MA_NOTOWNED); 1375 1376 while (sched_runnable() == 0) 1377 cpu_idle(); 1378 1379 mtx_lock_spin(&sched_lock); 1380 mi_switch(SW_VOL, NULL); --- 47 unchanged lines hidden --- |