summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/sched_rr_get_interval.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/sched_rr_get_interval.c')
-rw-r--r--cpukit/posix/src/sched_rr_get_interval.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/posix/src/sched_rr_get_interval.c b/cpukit/posix/src/sched_rr_get_interval.c
index 060cea0f58..1cb78eaf74 100644
--- a/cpukit/posix/src/sched_rr_get_interval.c
+++ b/cpukit/posix/src/sched_rr_get_interval.c
@@ -24,9 +24,8 @@
#include <sched.h>
#include <errno.h>
-#include <rtems/system.h>
-#include <rtems/score/threadimpl.h>
#include <rtems/score/timespec.h>
+#include <rtems/config.h>
#include <rtems/seterr.h>
int sched_rr_get_interval(
@@ -44,6 +43,10 @@ int sched_rr_get_interval(
if ( !interval )
rtems_set_errno_and_return_minus_one( EINVAL );
- _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );
+ _Timespec_From_ticks(
+ rtems_configuration_get_ticks_per_timeslice(),
+ interval
+ );
+
return 0;
}