kern_idle.c (67365) | kern_idle.c (72200) |
---|---|
1/*- 2 * Copyright (c) 2000, All rights reserved. See /usr/src/COPYRIGHT 3 * | 1/*- 2 * Copyright (c) 2000, All rights reserved. See /usr/src/COPYRIGHT 3 * |
4 * $FreeBSD: head/sys/kern/kern_idle.c 67365 2000-10-20 07:58:15Z jhb $ | 4 * $FreeBSD: head/sys/kern/kern_idle.c 72200 2001-02-09 06:11:45Z bmilekic $ |
5 */ 6 7#include "opt_ktrace.h" 8 9#include <sys/param.h> 10#include <sys/systm.h> 11#include <sys/proc.h> 12#include <sys/kernel.h> --- 87 unchanged lines hidden (view full) --- 100 if (vm_page_zero_idle() != 0) 101 continue; 102 103#ifdef __i386__ 104 cpu_idle(); 105#endif 106 } 107 | 5 */ 6 7#include "opt_ktrace.h" 8 9#include <sys/param.h> 10#include <sys/systm.h> 11#include <sys/proc.h> 12#include <sys/kernel.h> --- 87 unchanged lines hidden (view full) --- 100 if (vm_page_zero_idle() != 0) 101 continue; 102 103#ifdef __i386__ 104 cpu_idle(); 105#endif 106 } 107 |
108 mtx_enter(&sched_lock, MTX_SPIN); | 108 mtx_lock_spin(&sched_lock); |
109 mi_switch(); | 109 mi_switch(); |
110 mtx_exit(&sched_lock, MTX_SPIN); | 110 mtx_unlock_spin(&sched_lock); |
111 } 112} | 111 } 112} |