Changeset c4c5401 in rtems
- Timestamp:
- 11/20/08 19:19:16 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 59c9f26
- Parents:
- d2ccb32
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
rd2ccb32 rc4c5401 1 2008-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 1 7 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
cpukit/posix/inline/rtems/posix/priority.inl
rd2ccb32 rc4c5401 33 33 ) 34 34 { 35 return (priority >= 1 && priority <= 254); 35 return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) && 36 (priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY)); 37 36 38 } 37 39 … … 40 42 ) 41 43 { 42 return (Priority_Control) ( 255 - priority);44 return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 43 45 } 44 46 … … 47 49 ) 48 50 { 49 return 255 - priority;51 return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); 50 52 } 51 53
Note: See TracChangeset
for help on using the changeset viewer.