Changeset c8e83288 in rtems


Ignore:
Timestamp:
May 21, 2014, 8:29:59 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
82f90743
Parents:
4ddc3b5
git-author:
Sebastian Huber <sebastian.huber@…> (05/21/14 08:29:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/21/14 09:48:25)
Message:

score: Add and use _Scheduler_Get_index_by_id()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulerimpl.h

    r4ddc3b5 rc8e83288  
    597597}
    598598
     599RTEMS_INLINE_ROUTINE uint32_t _Scheduler_Get_index_by_id( Objects_Id id )
     600{
     601  uint32_t minimum_id = _Scheduler_Build_id( 0 );
     602
     603  return id - minimum_id;
     604}
     605
    599606RTEMS_INLINE_ROUTINE bool _Scheduler_Get_by_id(
    600607  Objects_Id                id,
     
    602609)
    603610{
    604   uint32_t minimum_id = _Scheduler_Build_id( 0 );
    605   uint32_t index = id - minimum_id;
     611  uint32_t index = _Scheduler_Get_index_by_id( id );
    606612  const Scheduler_Control *scheduler = &_Scheduler_Table[ index ];
    607613
Note: See TracChangeset for help on using the changeset viewer.