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 215701 2010-11-22 19:32:54Z dim $"); |
37 38#include "opt_hwpmc_hooks.h" 39#include "opt_sched.h" 40#include "opt_kdtrace.h" 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/cpuset.h> --- 111 unchanged lines hidden (view full) --- 156static struct runq runq_pcpu[MAXCPU]; 157long runq_length[MAXCPU]; 158#endif 159 160struct pcpuidlestat { 161 u_int idlecalls; 162 u_int oldidlecalls; 163}; |
164static DPCPU_DEFINE(struct pcpuidlestat, idlestat); |
165 166static void 167setup_runqs(void) 168{ 169#ifdef SMP 170 int i; 171 172 for (i = 0; i < MAXCPU; ++i) --- 1527 unchanged lines hidden --- |