OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [rtems/] [sys/] [sched.h] - Blame information for rev 39

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/*
2
 *  $Id: sched.h,v 1.1.1.1 2000-06-10 01:20:23 lampret Exp $
3
 */
4
 
5
 
6
#ifndef __POSIX_SYS_SCHEDULING_h
7
#define __POSIX_SYS_SCHEDULING_h
8
 
9
#include <sys/features.h>
10
 
11
#include <sys/types.h>
12
#include <sys/time.h>
13
 
14
/*
15
 *  13.2 Scheduling Policies, P1003.1b-1993, p. 250
16
 *
17
 *  NOTE:  SCHED_SPORADIC added by P1003.4b/D8, p. 34.
18
 */
19
 
20
#define SCHED_OTHER    0
21
#define SCHED_FIFO     1
22
#define SCHED_RR       2
23
 
24
#if defined(_POSIX_SPORADIC_SERVER)
25
#define SCHED_SPORADIC 3 
26
#endif
27
 
28
/*
29
 *  13.1 Scheduling Parameters, P1003.1b-1993, p. 249
30
 *
31
 *  NOTE:  Fields whose name begins with "ss_" added by P1003.4b/D8, p. 33.
32
 */
33
 
34
struct sched_param {
35
  int sched_priority;           /* Process execution scheduling priority */
36
 
37
#if defined(_POSIX_SPORADIC_SERVER)
38
  int ss_low_priority;          /* Low scheduling priority for sporadic */
39
                                /*   server */
40
  struct timespec ss_replenish_period;
41
                                /* Replenishment period for sporadic server */
42
  struct timespec ss_initial_budget;   /* Initial budget for sporadic server */
43
#endif
44
};
45
 
46
#endif
47
/* end of include file */
48
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.