Changeset c4c5401 in rtems


Ignore:
Timestamp:
11/20/08 19:19:16 (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
59c9f26
Parents:
d2ccb32
Message:

2008-11-20 Joel Sherrill <joel.sherrill@…>

PR 1306/cpukit

  • posix/inline/rtems/posix/priority.inl: Eliminate hard coded numbers in favor of existing macros.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd2ccb32 rc4c5401  
     12008-11-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1306/cpukit
     4        * posix/inline/rtems/posix/priority.inl: Eliminate hard coded numbers
     5        in favor of existing macros.
     6
    172008-11-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/posix/inline/rtems/posix/priority.inl

    rd2ccb32 rc4c5401  
    3333)
    3434{
    35   return (priority >= 1 && priority <= 254);
     35  return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) &&
     36          (priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY));
     37
    3638}
    3739
     
    4042)
    4143{
    42   return (Priority_Control) (255 - priority);
     44  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
    4345}
    4446
     
    4749)
    4850{
    49   return 255 - priority;
     51  return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
    5052}
    5153
Note: See TracChangeset for help on using the changeset viewer.