summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerprioritychangepriority.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-24 11:22:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-24 14:44:31 +0200
commit254dc82daf8cbd6922376fcbb81c31e21cbf4d16 (patch)
treec58687f860da6543dc05ab14fdf7e8db8f77cfbc /cpukit/score/src/schedulerprioritychangepriority.c
parentscore: Silence integer conversion warnings (diff)
downloadrtems-254dc82daf8cbd6922376fcbb81c31e21cbf4d16.tar.bz2
score: Change Priority_Control to 64-bit
A 32-bit Priority_Control limits the uptime to 49 days with a 1ms clock tick in case the EDF scheduler is used. Increase it to 64-bit to enable proper operation of the EDF scheduler, Close 2173.
Diffstat (limited to 'cpukit/score/src/schedulerprioritychangepriority.c')
-rw-r--r--cpukit/score/src/schedulerprioritychangepriority.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulerprioritychangepriority.c b/cpukit/score/src/schedulerprioritychangepriority.c
index 04599f5c74..4fc46cf15a 100644
--- a/cpukit/score/src/schedulerprioritychangepriority.c
+++ b/cpukit/score/src/schedulerprioritychangepriority.c
@@ -37,7 +37,8 @@ Scheduler_Void_or_thread _Scheduler_priority_Update_priority(
}
node = _Scheduler_priority_Thread_get_node( the_thread );
- priority = _Scheduler_Node_get_priority( &node->Base, &prepend_it );
+ priority = (unsigned int )
+ _Scheduler_Node_get_priority( &node->Base, &prepend_it );
if ( priority == node->Ready_queue.current_priority ) {
/* Nothing to do */