[BACK]Return to sched.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/sched.h between version 1.37 and 1.38

version 1.37, 2007/09/21 01:50:36 version 1.38, 2007/10/08 20:06:20
Line 125  struct sched_param {
Line 125  struct sched_param {
  * c:   cpu_lock   * c:   cpu_lock
  */   */
 struct schedstate_percpu {  struct schedstate_percpu {
         void            *spc_sched_info;/* (: scheduler-specific structure */          /* First set of data is likely to be accessed by other CPUs. */
         kmutex_t        *spc_mutex;     /* (: lock on below, runnable LWPs */          kmutex_t        *spc_mutex;     /* (: lock on below, runnable LWPs */
         kmutex_t        spc_lwplock;    /* (: general purpose lock for LWPs */          kmutex_t        spc_lwplock;    /* (: general purpose lock for LWPs */
         struct timeval  spc_runtime;    /* s: time curlwp started running */          pri_t           spc_curpriority;/* m: usrpri of curlwp */
         volatile int    spc_flags;      /* m: flags; see below */          time_t          spc_lastmod;    /* c: time of last cpu state change */
   
           /* For the most part, this set of data is CPU-private. */
           void            *spc_sched_info;/* (: scheduler-specific structure */
           volatile int    spc_flags;      /* s: flags; see below */
         u_int           spc_schedticks; /* s: ticks for schedclock() */          u_int           spc_schedticks; /* s: ticks for schedclock() */
         uint64_t        spc_cp_time[CPUSTATES];/* s: CPU state statistics */          uint64_t        spc_cp_time[CPUSTATES];/* s: CPU state statistics */
         pri_t           spc_curpriority;/* m: usrpri of curlwp */  
         int             spc_ticks;      /* s: ticks until sched_tick() */          int             spc_ticks;      /* s: ticks until sched_tick() */
         int             spc_pscnt;      /* s: prof/stat counter */          int             spc_pscnt;      /* s: prof/stat counter */
         int             spc_psdiv;      /* s: prof/stat divisor */          int             spc_psdiv;      /* s: prof/stat divisor */
         time_t          spc_lastmod;    /* c: time of last cpu state change */  
 };  };
   
 /* spc_flags */  /* spc_flags */
Line 212  void  sched_print_runqueue(void (*pr)(co
Line 214  void  sched_print_runqueue(void (*pr)(co
 void            preempt(void);  void            preempt(void);
 int             mi_switch(struct lwp *);  int             mi_switch(struct lwp *);
 inline void     resched_cpu(struct lwp *);  inline void     resched_cpu(struct lwp *);
   void            updatertime(lwp_t *, const struct timeval *);
   
 #endif  /* _KERNEL */  #endif  /* _KERNEL */
 #endif  /* _SYS_SCHED_H_ */  #endif  /* _SYS_SCHED_H_ */

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

CVSweb <webmaster@jp.NetBSD.org>