Use _Thread_Get_priority()

This commit is contained in:
Sebastian Huber 2016-09-22 07:21:54 +02:00
parent 7f75b564fc
commit 2c44b51475
2 changed files with 4 additions and 3 deletions

View File

@ -369,8 +369,8 @@ sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags,
/* FIXME: This is broken with clustered scheduling */ /* FIXME: This is broken with clustered scheduling */
succ = NULL; succ = NULL;
TAILQ_FOREACH(succ, &sq->sq_blocked[queue], td_slpq) { TAILQ_FOREACH(succ, &sq->sq_blocked[queue], td_slpq) {
if (td->td_thread->current_priority < if (_Thread_Get_priority(td->td_thread) <
succ->td_thread->current_priority) _Thread_Get_priority(succ->td_thread))
break; break;
} }
if (succ == NULL) if (succ == NULL)

View File

@ -49,6 +49,7 @@
#include <inttypes.h> #include <inttypes.h>
#include <rtems/netcmds-config.h> #include <rtems/netcmds-config.h>
#include <rtems/score/threadimpl.h>
static void static void
rtems_bsd_dump_thread(Thread_Control *thread) rtems_bsd_dump_thread(Thread_Control *thread)
@ -68,7 +69,7 @@ rtems_bsd_dump_thread(Thread_Control *thread)
stdout, stdout,
" 0x%08" PRIx32 " | %8" PRIu32 " | %s\n", " 0x%08" PRIx32 " | %8" PRIu32 " | %s\n",
thread->Object.id, thread->Object.id,
thread->current_priority, _Thread_Get_priority(thread),
name name
); );
} }