sched_4bsd.c (113923) | sched_4bsd.c (114293) |
---|---|
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. --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * | 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. --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * |
38 * $FreeBSD: head/sys/kern/sched_4bsd.c 113923 2003-04-23 18:51:05Z jhb $ | 38 * $FreeBSD: head/sys/kern/sched_4bsd.c 114293 2003-04-30 12:57:40Z markm $ |
39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/ktr.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> --- 13 unchanged lines hidden (view full) --- 60 RQ_PPQ) + INVERSE_ESTCPU_WEIGHT - 1) 61#define INVERSE_ESTCPU_WEIGHT 8 /* 1 / (priorities per estcpu level). */ 62#define NICE_WEIGHT 1 /* Priorities per nice level. */ 63 64struct ke_sched { 65 int ske_cpticks; /* (j) Ticks of cpu time. */ 66}; 67 | 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> 43#include <sys/kernel.h> 44#include <sys/ktr.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> --- 13 unchanged lines hidden (view full) --- 60 RQ_PPQ) + INVERSE_ESTCPU_WEIGHT - 1) 61#define INVERSE_ESTCPU_WEIGHT 8 /* 1 / (priorities per estcpu level). */ 62#define NICE_WEIGHT 1 /* Priorities per nice level. */ 63 64struct ke_sched { 65 int ske_cpticks; /* (j) Ticks of cpu time. */ 66}; 67 |
68struct ke_sched ke_sched; | 68static struct ke_sched ke_sched; |
69 70struct ke_sched *kse0_sched = &ke_sched; 71struct kg_sched *ksegrp0_sched = NULL; 72struct p_sched *proc0_sched = NULL; 73struct td_sched *thread0_sched = NULL; 74 75static int sched_quantum; /* Roundrobin scheduling quantum in ticks. */ 76#define SCHED_QUANTUM (hz / 10) /* Default sched quantum */ --- 638 unchanged lines hidden --- | 69 70struct ke_sched *kse0_sched = &ke_sched; 71struct kg_sched *ksegrp0_sched = NULL; 72struct p_sched *proc0_sched = NULL; 73struct td_sched *thread0_sched = NULL; 74 75static int sched_quantum; /* Roundrobin scheduling quantum in ticks. */ 76#define SCHED_QUANTUM (hz / 10) /* Default sched quantum */ --- 638 unchanged lines hidden --- |