summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threaddispatch.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-04 13:58:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-07 14:51:31 +0200
commite785fbaae519e096e636e1dcea5a739dfead8c46 (patch)
treea342b5128baa070ea05663afac1f358298edb2f1 /cpukit/score/src/threaddispatch.c
parentscore: Delete _Thread_Maximum_extensions (diff)
downloadrtems-e785fbaae519e096e636e1dcea5a739dfead8c46.tar.bz2
score: Delete _Thread_Ticks_per_timeslice
Use the Configuration instead.
Diffstat (limited to 'cpukit/score/src/threaddispatch.c')
-rw-r--r--cpukit/score/src/threaddispatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c
index ae69a5c82f..40a2efbb82 100644
--- a/cpukit/score/src/threaddispatch.c
+++ b/cpukit/score/src/threaddispatch.c
@@ -28,6 +28,7 @@
#include <rtems/score/todimpl.h>
#include <rtems/score/userextimpl.h>
#include <rtems/score/wkspace.h>
+#include <rtems/config.h>
static Thread_Action *_Thread_Get_post_switch_action(
Thread_Control *executing
@@ -121,7 +122,7 @@ void _Thread_Dispatch( void )
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
- heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
+ heir->cpu_time_budget = rtems_configuration_get_ticks_per_timeslice();
#if !defined( RTEMS_SMP )
_ISR_Enable( level );