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/schedulercbsunblock.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 '')
-rw-r--r-- | cpukit/score/src/schedulercbsunblock.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulercbsunblock.c b/cpukit/score/src/schedulercbsunblock.c index 7898588bf2..05e155a4c3 100644 --- a/cpukit/score/src/schedulercbsunblock.c +++ b/cpukit/score/src/schedulercbsunblock.c @@ -79,11 +79,10 @@ Scheduler_Void_or_thread _Scheduler_CBS_Unblock( * a pseudo-ISR system task, we need to do a context switch. */ if ( - _Scheduler_Is_priority_higher_than( - scheduler, - the_thread->current_priority, - _Thread_Heir->current_priority - ) + _Scheduler_EDF_Priority_compare( + the_thread->current_priority, + _Thread_Heir->current_priority + ) == 1 ) { _Scheduler_Update_heir( the_thread, |