diff options
-rw-r--r-- | c/src/exec/posix/src/sched.c | 5 | ||||
-rw-r--r-- | cpukit/posix/src/sched.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/c/src/exec/posix/src/sched.c b/c/src/exec/posix/src/sched.c index 2cee1fc07d..92838b1a9b 100644 --- a/c/src/exec/posix/src/sched.c +++ b/c/src/exec/posix/src/sched.c @@ -4,11 +4,13 @@ #include <assert.h> #include <sched.h> +#include <errno.h> #include <rtems/system.h> #include <rtems/score/tod.h> #include <rtems/score/thread.h> #include <rtems/posix/priority.h> +#include <rtems/posix/time.h> /*PAGE * @@ -134,8 +136,6 @@ int sched_rr_get_interval( struct timespec *interval ) { - time_t us_per_quantum; - /* XXX do we need to support different time quantums per thread */ /* @@ -144,7 +144,6 @@ int sched_rr_get_interval( assert( pid == getpid() ); - _POSIX_Interval_to_timespec( _Thread_Ticks_per_timeslice, interval ); return 0; } diff --git a/cpukit/posix/src/sched.c b/cpukit/posix/src/sched.c index 2cee1fc07d..92838b1a9b 100644 --- a/cpukit/posix/src/sched.c +++ b/cpukit/posix/src/sched.c @@ -4,11 +4,13 @@ #include <assert.h> #include <sched.h> +#include <errno.h> #include <rtems/system.h> #include <rtems/score/tod.h> #include <rtems/score/thread.h> #include <rtems/posix/priority.h> +#include <rtems/posix/time.h> /*PAGE * @@ -134,8 +136,6 @@ int sched_rr_get_interval( struct timespec *interval ) { - time_t us_per_quantum; - /* XXX do we need to support different time quantums per thread */ /* @@ -144,7 +144,6 @@ int sched_rr_get_interval( assert( pid == getpid() ); - _POSIX_Interval_to_timespec( _Thread_Ticks_per_timeslice, interval ); return 0; } |