diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-09 16:55:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 14:00:29 +0200 |
commit | b8f76fa28e1e7258fbf9b15894fbf1be5b1fbe15 (patch) | |
tree | d780b7d2003db61829f9663499a16936b7e32ace /cpukit/score/src/scheduleredfunblock.c | |
parent | rtems: Rework RTEMS API to SuperCore priority (diff) | |
download | rtems-b8f76fa28e1e7258fbf9b15894fbf1be5b1fbe15.tar.bz2 |
score: Delete unused _Scheduler_Priority_compare()
By convention, thread priorities must be integers in RTEMS. Smaller
values represent more important threads.
Diffstat (limited to 'cpukit/score/src/scheduleredfunblock.c')
-rw-r--r-- | cpukit/score/src/scheduleredfunblock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/score/src/scheduleredfunblock.c b/cpukit/score/src/scheduleredfunblock.c index 977534214c..43d9753d34 100644 --- a/cpukit/score/src/scheduleredfunblock.c +++ b/cpukit/score/src/scheduleredfunblock.c @@ -42,10 +42,12 @@ Scheduler_Void_or_thread _Scheduler_EDF_Unblock( * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ - if ( _Scheduler_Is_priority_lower_than( - scheduler, - _Thread_Heir->current_priority, - the_thread->current_priority )) { + if ( + _Scheduler_EDF_Priority_compare( + the_thread->current_priority, + _Thread_Heir->current_priority + ) == 1 + ) { _Scheduler_Update_heir( the_thread, the_thread->current_priority == PRIORITY_PSEUDO_ISR |