The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/kern/sched.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1993,1991,1990,1989,1988,1987 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        sched.h,v $
   29  * Revision 2.6  93/11/17  17:21:04  dbg
   30  *      Moved most functions to policy-specific routines.  This header
   31  *      file now describes the periodic scheduling events.
   32  *      [93/05/11            dbg]
   33  * 
   34  * Revision 2.5  91/05/14  16:46:04  mrt
   35  *      Correcting copyright
   36  * 
   37  * Revision 2.4  91/02/05  17:28:50  mrt
   38  *      Changed to new Mach copyright
   39  *      [91/02/01  16:16:37  mrt]
   40  * 
   41  * Revision 2.3  90/08/07  17:58:47  rpd
   42  *      Picked up fix to MACH_FIXPRI version of csw_needed.
   43  *      [90/08/07            rpd]
   44  * 
   45  * Revision 2.2  90/06/02  14:55:44  rpd
   46  *      Updated to new scheduling technology.
   47  *      [90/03/26  22:15:22  rpd]
   48  * 
   49  * Revision 2.1  89/08/03  15:52:50  rwd
   50  * Created.
   51  * 
   52  * 20-Oct-88  David Golub (dbg) at Carnegie-Mellon University
   53  *      Use macro_help to avoid lint.
   54  *
   55  * 11-Aug-88  David Black (dlb) at Carnegie-Mellon University
   56  *      Make csw_needed a macro here.  Ignore first_quantum for local_runq.
   57  *
   58  *  9-Aug-88  David Black (dlb) at Carnegie-Mellon University
   59  *      No more runrun.
   60  *
   61  * 18-May-88  David Black (dlb) at Carnegie-Mellon University
   62  *      Added shutdown queue for shutdown thread.
   63  *
   64  * 29-Mar-88  David Black (dlb) at Carnegie-Mellon University
   65  *      SIMPLE_CLOCK: added sched_usec for drift compensation.
   66  *
   67  * 25-Mar-88  David Black (dlb) at Carnegie-Mellon University
   68  *      Added sched_load and related constants.  Moved thread_timer_delta
   69  *      here because it depends on sched_load.
   70  *
   71  * 19-Feb-88  David Black (dlb) at Carnegie-Mellon University
   72  *      Added sched_tick and shift definitions for more flexible ageing.
   73  *
   74  * 18-Nov-87  Avadis Tevanian (avie) at Carnegie-Mellon University
   75  *      Removed conditionals, purged history.
   76  */
   77 /*
   78  *      File:   sched.h
   79  *      Author: Avadis Tevanian, Jr.
   80  *      Date:   1985
   81  *
   82  *      Periodic scheduling events.
   83  */
   84 
   85 #ifndef _KERN_SCHED_H_
   86 #define _KERN_SCHED_H_
   87 
   88 #include <simple_clock.h>
   89 
   90 /*
   91  *      sched_tick increments once a second.  Used to age priorities.
   92  */
   93 
   94 extern unsigned sched_tick;
   95 
   96 #if     SIMPLE_CLOCK
   97 /*
   98  *      sched_usec is an exponential average of number of microseconds
   99  *      in a second for clock drift compensation.
  100  */
  101 
  102 extern int      sched_usec;
  103 #endif  /* SIMPLE_CLOCK */
  104 
  105 /*
  106  *      Initialize the periodic scheduling calculations.
  107  */
  108 extern void     init_sched_calculations(void);
  109 
  110 #endif  /* _KERN_SCHED_H_ */

Cache object: 88641ac4164c5c4e9e244d8613c60251


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.