diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-24 11:22:03 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-24 14:44:31 +0200 |
commit | 254dc82daf8cbd6922376fcbb81c31e21cbf4d16 (patch) | |
tree | c58687f860da6543dc05ab14fdf7e8db8f77cfbc /cpukit/score/include/rtems/score/schedulerpriorityimpl.h | |
parent | score: Silence integer conversion warnings (diff) | |
download | rtems-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/include/rtems/score/schedulerpriorityimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerpriorityimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h index 0f576b6d93..d03c8d32dc 100644 --- a/cpukit/score/include/rtems/score/schedulerpriorityimpl.h +++ b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h @@ -210,13 +210,13 @@ RTEMS_INLINE_ROUTINE void _Scheduler_priority_Ready_queue_update( Chain_Control *ready_queues ) { - ready_queue->current_priority = new_priority; + ready_queue->current_priority = (unsigned int) new_priority; ready_queue->ready_chain = &ready_queues[ new_priority ]; _Priority_bit_map_Initialize_information( bit_map, &ready_queue->Priority_map, - new_priority + (unsigned int) new_priority ); } |