subr_smp.c (235622) | subr_smp.c (236772) |
---|---|
1/*- 2 * Copyright (c) 2001, John Baldwin <jhb@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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This module holds the global variables and machine independent functions 32 * used for the kernel SMP support. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001, John Baldwin <jhb@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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30/* 31 * This module holds the global variables and machine independent functions 32 * used for the kernel SMP support. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 235622 2012-05-18 18:55:58Z iwasaki $"); | 36__FBSDID("$FreeBSD: head/sys/kern/subr_smp.c 236772 2012-06-09 00:37:26Z iwasaki $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/ktr.h> 42#include <sys/proc.h> 43#include <sys/bus.h> 44#include <sys/lock.h> --- 5 unchanged lines hidden (view full) --- 50#include <machine/cpu.h> 51#include <machine/smp.h> 52 53#include "opt_sched.h" 54 55#ifdef SMP 56volatile cpuset_t stopped_cpus; 57volatile cpuset_t started_cpus; | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/ktr.h> 42#include <sys/proc.h> 43#include <sys/bus.h> 44#include <sys/lock.h> --- 5 unchanged lines hidden (view full) --- 50#include <machine/cpu.h> 51#include <machine/smp.h> 52 53#include "opt_sched.h" 54 55#ifdef SMP 56volatile cpuset_t stopped_cpus; 57volatile cpuset_t started_cpus; |
58volatile cpuset_t suspended_cpus; |
|
58cpuset_t hlt_cpus_mask; 59cpuset_t logical_cpus_mask; 60 61void (*cpustop_restartfunc)(void); 62#endif 63/* This is used in modules that need to work in both SMP and UP. */ 64cpuset_t all_cpus; 65 --- 662 unchanged lines hidden --- | 59cpuset_t hlt_cpus_mask; 60cpuset_t logical_cpus_mask; 61 62void (*cpustop_restartfunc)(void); 63#endif 64/* This is used in modules that need to work in both SMP and UP. */ 65cpuset_t all_cpus; 66 --- 662 unchanged lines hidden --- |